0

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?

Boron
  • 99
  • 10
  • 34
  • Check [this](https://stackoverflow.com/questions/73198293/java-lang-runtimeexception-firebase-database-encountered-an-outofmemoryerror/73203134#73203134) out. – Alex Mamo Aug 05 '22 at 08:06
  • Thanks @AlexMamo, I already checked it out, I'm not displaying onto a list, also I checked out your profile & the firebase courses you offer, do you offer firebase consultation or an email perhaps one can reach you, this has been quite a challenge (scaling) – Boron Aug 05 '22 at 09:55

0 Answers0