Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Is the popular opinion that DELETE ALL doesnt use the Transient Journal true? - response (6) by dnoeth

$
0
0

Hi Nishant,
it's a FastPath Delete when there's no Trigger/Foreign Key/Join Index and it's known to the optimizer that it will be commited. i.e. the explain must show the END TRANSACTION step.
For ANSI sessions using a multistatement request:

DELETE FROM tab
;COMMIT;

For explicit transaction in Teradata sessions using a multistatement request:

BT;
...
DELETE FROM tab
;ET; --multistatement request

without BT it's a simple

DELETE FROM tab;

Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles