Jamal
Jamal2w ago

What are the .collect() limitations? How can I handle large amounts of data querying?

Right now in my application the tables are quite small and running .collect() does not cause any problems. However I have concerns for the future. If my table has over 25k documents, how does .collect react()? In my specific case, I want a cron job to read a whole table and delete data if x condition is meet once a week. If the .collect() method only reads x amount of documents what happens to the query? Will it re-run and finish the other results or will I have to re-run the cron again? What should I do when I expect to process a large amount of data at once?
1 Reply
Convex Bot
Convex Bot2w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!

Did you find this page helpful?