-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Accurate vote counts? #402
Comments
As to current deployed version it is still not. |
I've tried to fix this using "Distributed counter" aka writing to separate document from a collection but It did not solve the issue. (see #416)
The major issue for going to shard:
So maybe the solution should be the "consolidate" the date on user request to fix the discrepancies. This seems more reasonable and the "dataConsolidation" branch has already been created though it's only a script and not a direct function callable by the user. |
Solution to investigate: https://firebase.google.com/products/extensions/firestore-counter/ |
Other solution to investivate: FieldValue.increment https://firebase.google.com/docs/reference/js/firebase.firestore.FieldValue#increment |
After last changes, the count count should be the real count as the DB does the increment, not a cloud function.
To DO
The text was updated successfully, but these errors were encountered: