Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

[Deta Base] returns empty for query on the large data #686

Answered by etrotta
nghiepdev asked this question in Help
Discussion options

You must be logged in to vote

Quoting the documentation:

Up to 1 MB of data is retrieved before filtering with the query. Thus, in some cases you might get an empty list of items but still the last key evaluated in the response.

To apply the query through all the items in your base, you have to call fetch until last is empty.

when you query for a key, it can find it directly
when you query with a filter for a field like the 'secret', it has to iterate though the entire thing

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nghiepdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants