Will it be good to create a collection in the Cloud Firestore and put a million documents in it:
CollectionReference collection = db.collection("collection"); Map<String, Object> data1 = new HashMap<>(); data2.put("name", "Los Angeles"); data2.put("state", "CA"); data2.put("country", "USA"); collection.document("documentâ„–1").set(data1); ... ... ... Map<String, Object> data1 = new HashMap<>(); data1.put("name", "San Francisco"); data1.put("state", "CA"); data1.put("country", "USA"); collection.document("documentâ„–1000000000").set(data1); Then make requests like:
CollectionReference collection = db.collection("collection"); queryContact.whereEqualTo("state", "CF").whereEqualTo("name", "San Francisco"); How will this affect the response time? How many documents should be considered critical, after which it is better to structure the base differently?