Skip to content
Discussion options

You must be logged in to vote

There is no indexing so indeed the more filters you have the slower it gets as every record in a given store will be checked. The algorithm is dumb so indeed the order could have some impact (in a AND the first filter will be checked first). If you really want to optimize the filter, the faster will be to use a custom filter where you access the raw data of each record directly.

A query with complex filtering with lots of data could be slow for each getSnapshots call, however onSnapshots will be smart enough to only check the filtering on modified records.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jessicamrbr
Comment options

Answer selected by jessicamrbr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants