Retrieve superficial data of a big Firebase Database -


i have big database in firebase. in opinion it's wrong structured. trying snapshot of reference, takes time processing results. however, don't need retrieve data. don't need deepers items don't know how can superficials.

so structure this:

clients {     1234 {       name: 'paul',       last_name: 'mcartney',       city: 'liverpool',       account_movements: {            item1: {               ...            }       }     }     1234 { ... }     1236 { ... } } 

let's supose need clientes data except account_movements.

because talking big database suggest restructure database little bit. frank says, when trying read node, entire node. means every time add listener specific reference, downloading entire information of object. note, there no way in can download subset of properties of each node , that's why need denormalize database. because important rule in firebase have database flatten possible, suggest account_movements out each user , add separately top-level node. understand better, suggest read post, structuring firebase data correctly complex app , see tutorial, denormalization normal firebase database.

hope helps.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -