Closed leonardo2204 closed 6 years ago
I don't quite understand what you're trying to achieve. Can you elaborate a bit?
I believe the request here was to be able to add model data and geo data at the same time as an atomic batch.
Closing as duplicate of #51
Hey guys, A common scenario using GeoFire is:
So, the problem that arise is, we can't guarantee the consistency in Firebase, e.g. if some error occurs in any of the steps. In this case, Firebase provides
mDatabase.updateChildren(childUpdates);
. My question is, what is the best scenario to handle this common situation with GeoFire ?I was thinking about maybe exposing the updates HashMap as in GeoFire:
Or maybe creating another overloaded method receiving a HashMap, adding the
updates
to it and callingmDatabase.updateChildren(childUpdates);
Does it make sense ?