|
I'm wondering if a trigger get fired n times for n entities that gets updated in bulk. For example, I have an application that notifies students of their status (Approved or Not) when their grade are uploaded. And he grades are uploaded all at once for all the students (bulk operation). So, what I'm trying to ask is that the trigger get fired for each student in the bulk or a single time for the bulk operation itself. Thanks in advance. |
Answered by
koenbeuk
Jul 8, 2022
Replies: 1 comment 1 reply
|
A trigger will always fire for each individual changed entity in the ChangeTracker. So yes, A trigger will fire N times for N entities. |
1 reply
Answer selected by
MacyF
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A trigger will always fire for each individual changed entity in the ChangeTracker. So yes, A trigger will fire N times for N entities.