The :then conditional in the what block receives the old triplet value so can compare it to the new one.
If that old value could be passed to the then block, it could be used to do incremental updates to aggregates.
So instead of creating a derived list of values, then summing them, if a value in that list was updated, you would subtract the old value from a total, then add the new one.
The :then conditional in the what block receives the old triplet value so can compare it to the new one.
If that old value could be passed to the then block, it could be used to do incremental updates to aggregates.
So instead of creating a derived list of values, then summing them, if a value in that list was updated, you would subtract the old value from a total, then add the new one.
That would be ideal performance wise right?