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
Post a Comment