3

We came across the topic that you should use in AL “deleteall(true)” and “modifyall(true)” to allow subscribing such events and adding trigger code in extensions, while this is very much slower than using “deleteall(false)” and “modifyall(false)”.

 

Following idea came to my mind in case “deleteall(true)” and “modifyall(true)” is executed:

How about the AL run-time checks in the deletion/modification of the first record, whether there is any AL code to execute in deletion/modification triggers or subscribers. In case there is no code to execute, it then switches to the behaviour used against SQL when executing “deleteall(false)” and “modifyall(false)”.

Category: Development
STATUS DETAILS
New