Too many reads in a single function execution (Mutation)
I'm getting this error in a mutation while attempting to delete records in a loop with below code:
The logs indicate that this error is thrown at the delete line. the array "data" contains exactly 2900 items. I thought that this limitation error occurs only when we're retrieving data.
So I'd just would like to understand what this error means in the context of a (delete) mutation. How do indexes work in this case to limit the number of reads?
1 Reply
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!