BarisB
Convex Community2y ago
5 replies
Baris

One large query vs. multiple small queries

Hello again! 🙂 I’m curious whether it’s better to make one large query and put everything into an object or to use multiple useQuery calls.

I’m creating a table and using a single query function to retrieve rows, columns, cell values, and various things like dropdown selections, returning them as an object. I could also use separate useQuery calls for each row and cell.

What are the pros and cons between these two approaches? Specifically, I’m interested in the potential for function timeouts and their impact on caching. Thank you.
Was this page helpful?