get-convex / get-convex/aggregate

`replace` avoid writing aggregates up the tree

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31
Forks
7
Avg merge
8h
Merged PRs (30d)
9

Description

If you `replace` a key to the same or a similar key, and the sum doesn't change, we shouldn't write aggregates all the way up the tree. The counts and sums aren't changing near the top of the tree; just near the bottom. But currently we update the aggregate to remove the item and then add it back, which causes a write which can conflict with queries and other mutations

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.