trustbloc / edv

Encrypted data vault implementation in Golang - https://identity.foundation/edv-spec/
Apache License 2.0
16 stars 17 forks source link

Query optimization if ReturnFullDocuments is false #248

Open DRK3 opened 2 years ago

DRK3 commented 2 years ago

Currently, full documents are always retrieved from the database. If ReturnFullDocuments is false, then the IDs are extracted and the rest of the document(s) are discarded. We should really just do a query that returns only document IDs from the underlying database in the first place.