How to .indexon randomly in firebase db rules
Is there any way you can .indexon randomly on firebase db rules.
Because my app loads random memes stored in the firebase db
I give each post a random number key which is require to query by using following logic -
int random_no. = Random().nextInt(54321-12345);
Firebasedatabase.getrefrence.getInstance.child("Posts").orderby("serial_no.").start at("random-no.");
and if I use query it will download all nodes to the client side which will cost much in long run.
Thanks.