crowd.dev icon indicating copy to clipboard operation
crowd.dev copied to clipboard

Optimize aggregate recalculation triggers

Open skwowet opened this issue 8 months ago • 0 comments

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 avatar Feb 07 '25 08:02 skwowet