This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Only 1000 items can be fetched using fetch #224
Answered
by
jnsougata
KohnoseLami
asked this question in
Help
-
Can base register items after 1000? from deta import Deta
deta = Deta("")
bots = deta.Base("bots")
print(len(bots.fetch().items))
|
Beta Was this translation helpful? Give feedback.
Answered by
jnsougata
May 27, 2022
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
KohnoseLami
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fetch
has optional parameterlast
which is a string (last key evaluated in the response)check
last
parameter in hare https://docs.deta.sh/docs/base/sdk/#fetchthat will help you to fetch all the items from deta base in case you have more than 1000 items. keep fetching data from from base with the
last
key from the response until the last key in the response isNone