i am trying to display all this shops inventory data and filter by category/name/price/etc..
- i can do this by using
orderbyChild("Shop")
and push all data in to list and display/filter data but with large user data that way can cause performance? - is their better way to get all this shops data and filter using category /product name/price/etc...
CodePudding user response:
Firebase Realtime Database queries look for values at a fixed path under each direct child node of the path that you query. They don't recursively search on all nodes under there. So, if you want to search across all shops, you'll have to (possibly additionally) store the data in a flat list.
Also see Firebase Query Double Nested