ibrahimyaacobI
Convex Community13mo ago
7 replies
ibrahimyaacob

How to catch too many bytes read in a single function execution error ?

i have a query function that performs multiple queries below.

export const queryfunction = query({

// expensive query 1
const result1 = await ctx.db("..")

// expensive query 2
const result2 = await ctx.db("..")

})


right now im trying to understand if the
the too many bytes read in a single function is caused by a single db query or is it triggered by sum of that multiple queries?

if its the later, how do i catch it in serverside ?
Was this page helpful?