I'm wondering if the amount of documents in a collection in Firestore database will affect the query-time using the where()
method in Flutter?
For example I've a User-Collection with millions of users. When I query only certain users like below:
db.collection("users").where("age", isEqualTo: 20).get().then(
(res) => print("Successfully completed"),
onError: (e) => print("Error completing: $e"),
);
Let's say the Future returns only 100 User Documents within 1.000 or 100.000.000 User Documents.
Does it matter how many documents are inside the collection in terms of query-time?
Thanks