T
TanStack4d ago
national-gold

What would be the best way to handle paginations and filtering

What would be the best way to handle backend pagination and filtering with db? I am looking for suggestions, still can fully wrap my head around it. We would fetch every page and filter individualy and then push those records to a collection?
1 Reply
adverse-sapphire
adverse-sapphire4d ago
generally you want to filter/paginate with a query — so overfetch to the collection and pull out what you need through the query

Did you find this page helpful?