Select IN() query in firebase database android

firebase-console

Firebase doesn’t have an equivalent for a SQL SELECT * FROM table WHERE id IN (1,2,3). The performance increase over retrieving the items separately would be marginal at best, because Firebase already pipelines the requests over a single connection.

Another way is denormalizing the database or making a query for every uId.
For denormalization : https://www.youtube.com/watch?v=vKqXSZLLnHA

You may also like

Leave a Reply