X
Xata5mo ago
Oreki

GetAll

just a random thought, how bad will it be to use getAll() on large datasets?
4 Replies
tsg
tsg5mo ago
getAll paginates internally through the data. So it will create many small requests. Still, it buffers in memory so your app might run out of memory. If you want something in-between, you can use getMany with a limit of 10k or so. That will still paginate but there’s an upper limit.
Oreki
OrekiOP5mo ago
So it'll be better to just paginate
tsg
tsg5mo ago
Yeah, it’s better
Oreki
OrekiOP5mo ago
I only need 10 records at max, I was just trying to figure out a way to filter using json column I found them in docs
Want results from more Discord servers?
Add your server