-
Notifications
You must be signed in to change notification settings - Fork 615
Firestore queries performance problem #565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@algrid Thanks for reporting this! Unfortunately, there is no quick fix, but we are currently prioritizing Query performance on Android. We hope to have some fixes for you soon! |
I'm facing the same problem of slow performance. If i disabled persistence it's also faster, but not enough. I've tried to set the cache to unlimited, didn't help. I see the same messages as algrid in the logcat. Testing on Huawei P8 lite. |
@schmidt-sebastian Thank you! Glad to know that someone is working on this. |
While this is still ongoing work, I have merged two PRs that will improve Query execution performance with the next release:
These PRs improve our deserialization form Persistence by a) skipping the step when it is not needed and b) moving it to a background thread if it is. |
Closing this issue, due to inactivity and the hope that it has been addressed by the code in #727. Please file a new issue should this problem persist. |
Versions:
The problem:
Firestore queries can work slow, especially when they return a lot of documents. And after such a query another query (that returns even a single document) start to work slower too.
Some numbers:
If I turn off persistence the queries become ~2x faster.
When doing these slow queries I often see in logcat lines like this:
To reproduce the problem I created a sample project: https://github.com/algrid/Firestore-slow-sample (don't forget to add your own google-services.json)
Probably this is related to the problems reported here: flutter/flutter#18570
The text was updated successfully, but these errors were encountered: