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