%NOJOURNDOC
Suppress journaling and disables transactions for the duration of the insert operation. None of the changes made in any of the rows are journaled, including any triggers pulled. If you perform a ROLLBACK after a statement with %NOJOURN, the changes made by the statement are not rolled back. This option requires setting the corresponding %NOJOURN administrative privilege. Failing to set this privilege generates an SQLCODE -99 error on insert.
Here is a small example:
Class dc.test Extends %Persistent { Property log As %String; ClassMethod Test() { d ..%KillExtent() TS &sql(insert into dc.test(log)values('log1')) &sql(insert %NOJOURN into dc.test(log)values('log2')) &sql(insert into dc.test(log)values('log3')) TRO } }
- Log in to post comments