Home > Net >  Firebase Flutter: how to quay Real time database nested data list
Firebase Flutter: how to quay Real time database nested data list

Time:01-06

i am trying to display all this shops inventory data and filter by category/name/price/etc..

  1. 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?
  2. is their better way to get all this shops data and filter using category /product name/price/etc...

Database

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

  • Related