Skip to content
  • senthil's avatar
    [FAB-7131] CouchDB: per channel-chaincode DB · 6cbebf4a
    senthil authored
    
    
    For every chaincode, use a separate database instead of using
    the same channel database. This CR makes the following changes:
    (i) creates a database per channel_chaincode and two DBs per
    channel_chaincode_collection (one for hashed data and another for
    actual private data).
    (ii) modifies GetState, RangeQuery, and ExecuteQuery implementation
    to use appropriate chaincode DB as per the given namespace.
    (iii) modifies commit process (ApplyUpdates) to apply changes to
    respective chaincode DBs.
    
    In the subsequent CR, for loadCommittedVersions and ApplyUpdates,
    goroutines would be used to process each chaincode batches
    parallely.
    
    Change-Id: I05b5f70e6c253cec683382c9e5b2b39b6a6bcce8
    Signed-off-by: default avatarsenthil <cendhu@gmail.com>
    6cbebf4a