0

I'm using Firestore with an app that I'm trying to do. I've done a documentSnapshot.toObject(Something.class) to pick a value from a specific documents. And then assign it to a TextView.

However, upon opening the app, this TextView takes a few microsecond more to load. Everything else appears first.

Should I instead use Real Time Database for this particular operation?

Aj 27
  • 2,316
  • 21
  • 29
H Wong
  • 331
  • 3
  • 16
  • It will make no difference. The term "Realtime" might be misleading in this particular case. Either way, they still function as a kind of backend and that small latency is expected. – Chisko Mar 13 '18 at 07:19
  • Thanks for your advice and comment @Chisko – H Wong Mar 13 '18 at 08:17
  • You can take a look at [this post](https://stackoverflow.com/questions/48807159/improve-firestore-offline-cache-android). – Alex Mamo Mar 13 '18 at 10:24

0 Answers0