The Firebase Youtube channel has a tutorial showing how to convert regular SQL queries to Firebase.
The last request is to select all users with age = 28and who lives in Berlin. To get them, we need to create an index, for example 28_Berlinfor the user, because we cannot use more than one ordering function.
But what should I do if I want to find all users with here age >= 28?
And what if I need to give users the opportunity to find each other, depending on their interests, age, location, gender? For example, if someone wants to find a man who is interested in programming and cars, lives in New York and is between 25 and 32 years old?
I seem to be in serious trouble.
source
share