Skip to content

Add CouchDB index support to implicit private data collections #4780

Open
@denyeart

Description

@denyeart

Current Status

Defining a CouchDB index in a chaincode for an implicit private data collection such as:
META-INF/statedb/couchdb/collections/_implicit_org_Org1MSP/indexes

results in error:

[privacyenabledstate] HandleChaincodeDeploy -> ERRO 4e9 Error processing index for chaincode [marblesp]: cannot create an index for an undefined collection=[_implicit_org_Org1MSP]

Expected

This story has two variants:

  • In the chaincode definition, define a CouchDB index for a specific named organization's implicit private data collection
  • In the chaincode definition, define a CouchDB index for all organization's implicit private data collections

 
Acceptance

  • Index created for named organization upon chaincode deployment.
  • Index created for each organization upon creation of their implicit private data collection state database (occurs upon first write to an org's collection).

Solution

No response

Please let us know if you plan to work on this.

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions