Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
First of all, it seems that Mysql does not allow to disable triggers. One way would be to set a session variable which can be checked in each trigger. This still incurs some overhead (trigger is st...
Answer
#1: Initial revision
First of all, it seems that Mysql does not allow [to disable triggers](https://stackoverflow.com/questions/13598155/how-to-disable-triggers-in-mysql). One way would be to set [a session variable](http://www.sqlines.com/mysql/session_variables) which can be checked in each trigger. This still incurs some overhead (trigger is still fired for each record), but the actual trigger functionality is very small.