Documente Academic
Documente Profesional
Documente Cultură
Steven Feuerstein
steven@stevenfeuerstein.com
www.StevenFeuerstein.com
www.PLSQLChallenge.com
Page 2
Page 3
Page 4
Procedural
statement
executor
SQL Engine
SQL
statement
executor
Performance penalty
for many context
switches
Copyright 2010 Feuerstein and Associates
Page 5
Page 6
Procedural
statement
executor
SQL Engine
SQL
statement
executor
Update...
Update...
Update...
Update...
Update...
Update...
Page 7
Only one difference: BEFORE and AFTER statementlevel triggers only fire once per FORALL INSERT
statements.
Not for each INSERT statement passed to the SQL engine
from the FORALL statement.
Copyright 2010 Feuerstein and Associates
statement_trigger_and_forall.sql
Page 8
Conclusions
Look for loops that contain DML statements.
This means that the same statement is executing
repeatedly, with different bind variables.
Page 9
Next Steps
Download the demo.zip if you have not
already (www.ToadWorld.com/SF).
Run the sample code yourself to better
understand the features and techniques.
Page 10