#query filtering vs js filtering performance

2 messages · Page 1 of 1 (latest)

obsidian kraken
#

Is there a time to use one over the other, or is one generally more performant?

viral edge
#

The main difference is ergonomic: You can put the query filter() before paginate() for example.

There might be a small perf difference, but it's probably negligible compared to the overall performance of the query, which can mainly suffer from scanning over many documents.