Skip to content
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

🐛 [Cloud_firestore] Firestore query snapshot with changes only #11631

Open
bswhite1 opened this issue Sep 25, 2023 · 0 comments
Open

🐛 [Cloud_firestore] Firestore query snapshot with changes only #11631

bswhite1 opened this issue Sep 25, 2023 · 0 comments
Labels
platform: all Issues / PRs which are for all platforms. plugin: cloud_firestore type: enhancement New feature or request

Comments

@bswhite1
Copy link

The current querySnapsot returns the list of all documents that match the query every time that a change occurs. For streams that return a large number of documents this an be an issue, as well as inefficient.

For instance, our use case requires us to keep a local cache of all documents returned by a query. When a single document is updated, querySnapshot will send a list all documents matching the query along with a list of the documents that were changed. All we need is that list of changes to update our local cache.

Since we have such a large number of documents in our streams, the querySnapshot was leading to issues with the method channels. We were getting ANR, and crashes while trying to pass data from the java to dart. This change has completely fixed these issues for us.

Pull request for suggested implementation found here:
#11539

@bswhite1 bswhite1 added Needs Attention This issue needs maintainer attention. type: enhancement New feature or request labels Sep 25, 2023
@darshankawar darshankawar added triage Issue is currently being triaged. plugin: cloud_firestore and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Sep 26, 2023
@Lyokone Lyokone added the platform: all Issues / PRs which are for all platforms. label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: all Issues / PRs which are for all platforms. plugin: cloud_firestore type: enhancement New feature or request
3 participants