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 Transaction Mode Processing (<strong><strong>Form</strong>s</strong> Runtime)<br />

Description<br />

Optimizes transaction mode processing.<br />

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

implicitly as part of posting or querying data. This behavior enhances processing because the statements<br />

in each cursor are parsed only the first time they are executed in a <strong><strong>Form</strong>s</strong> Runtime session, not every<br />

time.<br />

Note that the cursors that are assigned to query SELECT statements must be parsed every time they are<br />

executed. This exception exists because queries can vary from execution to execution.<br />

When you specify OptimizeTP=NO, <strong>Form</strong> <strong>Builder</strong> assigns a separate cursor only for each query<br />

SELECT statement. All other implicit SQL statements share, or reuse, cursors. This behavior saves<br />

memory but slows processing because all INSERT, UPDATE, DELETE, and SELECT FOR UPDATE<br />

statements must be parsed every time they are executed.<br />

Option Name Optimize Transaction Mode Processing optimizetp<br />

Default YES<br />

Optimize Transaction Mode Processing (<strong><strong>Form</strong>s</strong> Runtime) restrictions<br />

The OptimizeTP parameter has no effect if you replace standard <strong>Form</strong> <strong>Builder</strong> processing with On-<br />

Insert, On-Update, and On-Delete triggers because these triggers replace the implicit issuance of<br />

INSERT, UPDATE, and DELETE statements.<br />

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

ifrun60 module=myform userid=scott/tiger optimizetp=NO<br />

491

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

Saved successfully!

Ooh no, something went wrong!