i need add bunch of children firebase ref simultaneously, each individual priority.
adding each item separately unique priority not ideal, because generates change event each one, can cause performance problems in client apps if there hundreds occurring in quick succession.
currently, i'm creating map items , passing setvalue() on ref add them @ once. however, far know, there's no way while giving each object own priority.
is there way accomplish this?
i found solution - if objects being added have field annotated @jsonproperty(".priority"), used priority when object added firebase, whether individually or party of map, no need call setpriority(). handy know!
Comments
Post a Comment