|
|
|
|
|
by stickfigure
1463 days ago
|
|
This is not correct. You can filter on the same field twice. What you can't do is filter on different fields, eg: I want records where record.score >= 10 and record.date <= 2022-01-01 The first form (single field) is a simple range query on a single index - that's what Firestore is optimized for. The second form (with different fields) potentially requires walking the near-entirety of both indexes looking for matches, and therefore has unbounded time and computational requirements. Firestore is designed so that you can't do things that don't scale. Sometimes that sucks, especially when you know that the data volume for that query will always be "reasonable". But the limitations are not arbitrary. |
|