hyperledger / aries-askar

Secure storage designed for Hyperledger Aries agents.
Apache License 2.0
59 stars 45 forks source link

Support custom ordering in paginated queries #290

Closed ff137 closed 3 weeks ago

ff137 commented 1 month ago

Currently, paginated querying of storage records does not take a custom ordering option, nor does it specify a default ordering in the SQL query being made. This means that DB shuffling or new records being added, can lead to duplicate or missing results across pages being returned. To resolve this, support for custom ordering should be added to the scan method.