13.01.2013 Views

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

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.

Connecting a schema holder<br />

Table 6–3 describes the query-tuning options that you can specify with the -Dsrv parameter.<br />

Table 6–3: Connection query-tuning options<br />

qt_no_debug<br />

qt_debug,<strong>SQL</strong><br />

qt_debug,EXTENDED<br />

qt_debug,CURSOR<br />

Option Description<br />

qt_debug,PERFORMANCE<br />

qt_debug,CALL_SUMMARY<br />

qt_debug,VERBOSE<br />

qt_lookahead<br />

qt_no_lookahead<br />

qt_separate_connection<br />

qt_no_separate_connection<br />

Specifies whether the <strong>Data</strong><strong>Server</strong> prints debugging in<strong>for</strong>mation that it<br />

generates <strong>for</strong> the query to the dataserv.lg file. The default is qt_no_debug,<br />

to supply no debugging in<strong>for</strong>mation. To override the default, specify<br />

qt_debug,option as follows:<br />

• Specify qt_debug,<strong>SQL</strong> to record the <strong>SQL</strong> sent to the ODBC driver in<br />

the dataserv.lg file. Note that this <strong>SQL</strong> contains place holders <strong>for</strong><br />

values which will be bound to the statement when sent to the data<br />

source<br />

• Specify qt_debug,EXTENDED to print in<strong>for</strong>mation such as cursor<br />

statistics in addition to the <strong>SQL</strong> statements executed by the <strong>Data</strong><strong>Server</strong><br />

• Specify qt_debug,CURSOR to print in<strong>for</strong>mation about the cursors that<br />

the <strong>Data</strong><strong>Server</strong> uses <strong>for</strong> internal calls and <strong>for</strong> opening queries<br />

• Specify qt_debug,PERFORMANCE to print in<strong>for</strong>mation on the amount of<br />

time that certain operations take<br />

• Specify qt_debug,CALL_SUMMARY to print in<strong>for</strong>mation on cursors and<br />

timing<br />

• Specify qt_debug,VERBOSE to print all of the in<strong>for</strong>mation gathered by<br />

the other qt_debug options<br />

For more detailed descriptions of these options, see the Appendix D, “Using<br />

qt_debug to Analyze Per<strong>for</strong>mance.” For in<strong>for</strong>mation on Enhanced Logger<br />

options that replace the qt_debug options, see “Analyzing per<strong>for</strong>mance with<br />

the Enhanced Logger” section on page 6–18.<br />

Specifies whether the <strong>Data</strong><strong>Server</strong> uses lookahead or standard cursors. To<br />

generate efficient queries, qt_lookahead is the default in the following<br />

cases:<br />

• Statements that use NO-LOCK<br />

• Statements that use SHARE-LOCK with transaction isolation level set to<br />

read uncommitted<br />

Specify qt_no_lookahead <strong>for</strong> query behavior that is consistent with an<br />

<strong>OpenEdge</strong> database.<br />

Specifies whether each cursor should use a separate connection to the MS<br />

<strong>SQL</strong> <strong>Server</strong> database. The default is qt_no_separate_connection, which<br />

provides behavior that is consistent with an <strong>OpenEdge</strong> database. Specify<br />

qt_separate_connection to use a separate connection. Executing cursors<br />

in separate connections can improve per<strong>for</strong>mance because the <strong>Data</strong><strong>Server</strong><br />

does not have to restart the cursors.<br />

qt_cache_size,integer Specifies the size in bytes of the cache used by lookahead cursors. A larger<br />

cache size can improve per<strong>for</strong>mance <strong>for</strong> queries that return a large number<br />

of records because the <strong>Data</strong><strong>Server</strong> might need fewer <strong>SQL</strong> statements to get<br />

the results.<br />

Minimum: The <strong>Data</strong><strong>Server</strong> always caches at least one record.<br />

Maximum: None<br />

Default: 10,000 when block cursors are enabled (the default). 30,000 when<br />

block cursors are disabled.<br />

6–17

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

Saved successfully!

Ooh no, something went wrong!