I have a list" of data which contains its members. And members are having the list of user ids in the following format:
"list" : {
    "-pushid1" : {
         "members" : {
             "uid1" : true,
             "uid2" : true
         }
    },
    "-pushid2" : {
         "members" : {
             "uid2" : true,
             "uid3" : true
         }
    },
    .....
}
I am trying to retrieve the list of user1 with the following query:
FirebaseDatabase.getInstance().getReference().child("list").orderByChild("members/" + FirebaseAuth.getInstance().getCurrentUser().getUid()).equalTo(true);
For querying the list of 1000+ records, it is taking 5+ seconds. How can I define the index at which level to improve the retrieval speed?
