HELP : Firestore transaction latency, huge difference between web and mobile #8549
Unanswered
DanielBFox
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I couple of months ago I decided to use flutter/firebase/firestore on a brand new app. I started to develop it for the web platform and everything was ok about the firestore performances. Now I'm developing the android version (basically it's the same code for all the DB services) and the firestore performances are not good at all.
Concretely, I observe a huge difference when running the same transaction (same wifi connection) on any web browser and on android devices.
On the web, it takes less than 150ms to run it :
On a galaxy j6 with android 10, it takes 2.5 seconds to run it :
On a galaxy A40 with android 11, it takes more that 12 seconds :
I/flutter (30636): @@@before transaction 2022-04-2415:38:43.237485 I/flutter (30636): @@@start transaction 2022-04-24 15:38:43.549120 I/flutter (30636): @@@after seed get 2022-04-24 15:38:49.340047 I/flutter (30636): @@@after tag get 2022-04-24 15:38:49.341779 I/flutter (30636): @@@after set counter 2022-04-24 15:38:49.342491 I/flutter (30636): @@@after set plant 2022-04-24 15:38:49.377040 I/flutter (30636): @@@after set tag 2022-04-24 15:38:49.377556 I/flutter (30636): @@@after set post 2022-04-24 15:38:49.391190 I/flutter (30636): @@@after transaction 2022-04-2415:38:55.602388
Here is the code of the transaction :
Beta Was this translation helpful? Give feedback.
All reactions