Skip to content

range example please #105

Answered by kriszyp
cekvenich2 asked this question in Q&A
Dec 7, 2021 · 5 comments · 1 reply
Discussion options

You must be logged in to vote

Yes, that's correct, there wouldn't be anything meaningful about doing a range query on random GUIDs. But, like you said, you could still do range query of the whole database, and use offset/limit to get sections (and you could do that by just omitting the start and end properties, and then the range will be across the whole database):

let iterable = db.getRange({
  offset: 2000, // start at row 2000
  limit: 1000, // iterate through a thousand
})

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kriszyp
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cekvenich2
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants