skip to Main Content

Firebase – Handle huge number of index in Firestore queries

Here is my code: Query query = firestore.collection("users") .document(myUserID) .collection("unseen_profiles") .whereEqualTo("country", myProfileCountryFilter); if (!myProfileGenderFilter.isEmpty() && !myProfileGenderFilter.equalsIgnoreCase("everyone")) { query = query.whereEqualTo("gender", myProfileGenderFilter); } if (heightFilterOn) { query = query.whereGreaterThanOrEqualTo("height", minimumHeight); } if (weightFilterOn) { query = query.whereLessThanOrEqualTo("weight", maximumWeight); } if (customAgeFilterOn)…

VIEW QUESTION
Back To Top
Search