Aside from sharding your real-time database & setting largeHeap:true
on the Manifest file, how else do you prevent an Out of memory exception on the client-side.
Assume you have 100k+ users in your customers node & for each user in order to retrieve their data, you have something like:
firebaseDatabase.getReference("customers")
.child(userId) //The culprit causing the error, since it has to read the entire node
.get()
How would you tackle this issue?