Just read this...
"Try to structure the code so that it does not have to examine the
return values of the INSERT, MODIFY, or DELETE functions.
When using the return value, the server has to be notified right away
so that a response can be obtained. Therefore, if they are not
necessary, do not look at these return values."
So help I'm not 100% clear what this is saying (my english!) -
Does it mean...
MODIFY(FALSE) is bad and instead it should be just MODIFY...
I hope so because that's what I've always done unless the OnModify trigger is needed in which case MODIFY(TRUE)
Comments
It has nothing to do with (TRUE) or (FALSE). These two parameters change the business logic. INSERT(FALSE) will perform an insert without executing any validation code.
What this means is that you should avoid writing IF INSERT THEN... or IF NOT MODIFY THEN...
IF COMMAND returns a boolean value indicating a successful / unsuccessful command.
when you have to. When you do the code like this the server has to send a response in order to know how to move forward. When you just do a normal INSERT/MODIFY/DELETE it moves to the next line of code without waiting.
there's no problem in using structure (supposing that mytemptable IS a temporary table variable) as it does not imply any server call/response.
This is obvious, but it's useful to know, as it is a comfortable way of managing temptables, if you need it
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog