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

Optimize aggregate recalculation triggers #2801

Open
skwowet opened this issue Feb 7, 2025 — with Linear · 0 comments
Open

Optimize aggregate recalculation triggers #2801

skwowet opened this issue Feb 7, 2025 — with Linear · 0 comments
Labels
Backend 🛠️ Improvement Created by Linear-GitHub Sync

Comments

Copy link
Member

skwowet commented Feb 7, 2025

Currently, we recalculate aggregates whenever a member, organization, or activity changes, but we should only do so when:

  • an activity is created
  • activity type, platform, channel, timestamp, memberId, segmentId or organizationId is updated
  • member affiliations are changed

Everything else should not trigger aggregate recalculations, as it would be a waste of resources. For example, changes to an activity’s body, a member’s attributes, or an organization’s URL do not impact aggregates.

@skwowet skwowet added Improvement Created by Linear-GitHub Sync Backend 🛠️ labels Feb 7, 2025 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend 🛠️ Improvement Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

1 participant