-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added get all keys feature #65
Conversation
Thanks for this complete PR, @danielbatica ! We'll review next week, stay tuned. |
I'm not working on this code but I have alarms go on when I see a What if you have a hundred million keys? I think the method should either implement some form of paging for the results, or at least set a limit on the size of the array returned. |
Makes sense, It would be easy if the underlying cosmosdb would provide that since this is just a wrapper. I think this might help https://docs.microsoft.com/en-us/javascript/api/@azure/cosmos/feedoptions?view=azure-node-latest#_azure_cosmos_FeedOptions_continuationToken |
Hi @danielbatica , we've been discussing your PR and we'll keep it on hold for now: we have indeed a very similar PR from @sandeep-paliwal which had been deferred, for the following reasons:
Nevertheless this feature is frequently asked by our users. As an immediate next step, @sandeep-paliwal will go through a usage analysis of our OOTB storage so that we could assess the possible impact as early mentioned. cc @sarahxxu for her additional input |
Codecov Report
@@ Coverage Diff @@
## master #65 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 6 6
Lines 173 182 +9
Branches 36 36
=========================================
+ Hits 173 182 +9
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
closing as this is implemented in the new State majors (> v4). Legacy State users can refer to this PR to manually implement listing. |
I added a new API to the store: getAllKeys. It returns the exiting keys for the partition.
Added impl, unit tests, e2e, docs.
Motivation and Context
We use aio-state-lib for Adobe's AEM Screens Cloud. We need to get all stored keys.
Jira story: http://jira.corp.adobe.com/browse/SCRNS-1287
How Has This Been Tested?
Added e2e test that passes. Used an AIO runtime namespace
Screenshots (if appropriate):
Types of changes
Checklist: