Many bytes read in a single function ERROR on ctx.db.get() where no element exceeds 5000 bytes
Hey so ive got a strange warning on a simple function thats just getting elements with a ctx.db.get query. Im wondering if this has to do with the query being called a lot from a parent mutation, but then I would expect the warning to only be there for the parent mutation (which by the way also shows a warning).
The warnings are associated to the same request and the size of the element keeps going up, which again would make sense if the parent mutation is just piling on reads through this simple ctx.db.get...but my question is, why does the query get the warning too?
2 Replies
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!
I suspect the get calls from the parent are racking up reads and the first one to exceed the limit gets the error
Like, "this ctx.db.get() attempt failed because there were too many reads in the (parent) function"