Skip to content

Conversation

@kobsy
Copy link
Member

@kobsy kobsy commented Jan 13, 2026

Summary

While STATEMENT-level triggers are better for bulk operations, being vastly more performant when INSERTing or DELETEing large swaths of data, ROW-level triggers can be more performant on individual UPDATE operations, since they can opt not to update the haystack if none of the indexed fields are actually updated. This update gives the option to use one or the other depending on application concerns (though it still defaults to STATEMENT as before).

kobsy added 3 commits January 13, 2026 10:31
While STATEMENT-level triggers are better for bulk operations, being
vastly more performant when INSERTing or DELETEing large swaths of data,
ROW-level triggers can be more performant on individual UPDATE
operations, since they can opt _not_ to update the haystack if none of
the indexed fields are actually updated. This update gives the option to
use one or the other depending on application concerns (though it still
defaults to STATEMENT as before).
@kobsy kobsy requested a review from a team January 13, 2026 16:36
@kobsy kobsy merged commit 68a01eb into master Jan 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants