Zubair
Zubair2w ago

Function execution timed out (maximum duration: 1s)

I tried to write 10000 * 15 = 150k (or more) row at once (for just testing) then Function execution timed out (maximum duration: 1s) then I tried 5000 * 15 = 75k (or more) then error is
Uncaught Error: Too many writes in a single function execution (limit: 16000)
at async handler (../convex/seedData.ts:133:51)
Uncaught Error: Too many writes in a single function execution (limit: 16000)
at async handler (../convex/seedData.ts:133:51)
finally 1k * 15 = 15k +, Many writes in a single function execution (actual: 15564, limit: 16000). What is this 1 second in failure, but in case of success, I have seen 1.7 seconds, 2.4 seconds.
No description
No description
1 Reply
Zubair
ZubairOP2w ago
oh, Limit applies only to user code and doesn’t include database operations. got it https://docs.convex.dev/production/state/limits#execution-time-and-scheduling
Limits | Convex Developer Hub
We’d love for you to have unlimited joy building on Convex but engineering

Did you find this page helpful?