BarisB
Convex Community2y ago
6 replies
Baris

How can I make my queries more efficient

Hello everyone, first of all, Convex is an excellent backend and we loved it! We're still learning and trying to make queries more efficient and cost effective.

Currently, We have a list that will contain thousands of items, and listing 50 items per page with a single query. But at the same time, each row uses its own useQuery to fetch additional data from a different table.

Isn't it inefficient to use a useQuery for each row since each one counts as a function call? As a solution, Is it possible to return both row and additional data as a merged object or appending additional data to inside the row data like graphql?
Was this page helpful?