11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Optimize SQL Processing (<strong><strong>Form</strong>s</strong> Runtime)<br />

Description<br />

Specifies that <strong>Form</strong> <strong>Builder</strong> is to optimize SQL statement processing in V2-style triggers by sharing<br />

database cursors.<br />

By default, <strong>Form</strong> <strong>Builder</strong> assigns a separate database cursor for each SQL statement that a form executes<br />

explicitly in a V2 trigger. This behavior enhances processing because the statements in each cursor need<br />

to be parsed only the first time they are executed in a <strong><strong>Form</strong>s</strong> Runtime session¾not every time.<br />

When you specify OptimizeSQL=NO, <strong>Form</strong> <strong>Builder</strong> assigns a single cursor for all SQL statements in V2<br />

triggers. These statements share, or reuse, that cursor. This behavior saves memory, but slows<br />

processing because the SQL statements must be parsed every time they are executed.<br />

You can fine-tune this behavior through the New Cursor Area trigger step characteristic. If a trigger step<br />

that contains a SQL statement has this characteristic turned on, <strong>Form</strong> <strong>Builder</strong> assigns a separate cursor to<br />

the statement, in effect overriding the OptimizeSQL parameter for that statement.<br />

Note: OptimizeSQL has no effect on statements in PL/SQL triggers.<br />

Option Name Optimize V2-Style trigger Step SQL Processing<br />

optimizesql<br />

Default YES<br />

Optimize SQL Processing (<strong><strong>Form</strong>s</strong> Runtime) examples<br />

490<br />

ifrun60 module=myform userid=scott/tiger optimizesql=NO

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!