10.02.2013 Views

Progress Sonic ESB Configuration and Management Guide

Progress Sonic ESB Configuration and Management Guide

Progress Sonic ESB Configuration and Management Guide

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.

Chapter 6: Driver Connection Properties <strong>and</strong> Data Types by Database Br<strong>and</strong><br />

Table 17. Connection Properties for the Microsoft SQL Server Driver (continued)<br />

Property Description<br />

SelectMethod<br />

OPTIONAL<br />

{direct | cursor}<br />

A hint to the driver that determines whether the driver requests a database<br />

cursor for Select statements. Performance <strong>and</strong> behavior of the driver are<br />

affected by this property, which is defined as a hint because the driver<br />

might not always be able to satisfy the requested method.<br />

● Direct — When the driver uses the Direct method, the database<br />

server sends the complete result set in a single response to the driver<br />

when responding to a query. A server-side database cursor is not<br />

created. Typically, responses are not cached by the driver. Using this<br />

method, the driver must process all the response to a query before<br />

another query is submitted. If another query is submitted (using a<br />

different statement on the same connection, for example), the driver<br />

caches the response to the first query before submitting the second<br />

query. Typically, the Direct method performs better than the Cursor<br />

method.<br />

● Cursor — When the driver uses the Cursor method, a server-side<br />

cursor is requested. The rows are retrieved from the server in blocks<br />

when returning forward-only result sets. The JDBC Statement<br />

method setFetchSize can be used to control the number of rows that<br />

are retrieved for each request. Performance tests show that the value<br />

of setFetchSize significantly impacts performance when the Cursor<br />

method is used. There is no simple rule for determining the<br />

setFetchSize value that you should use. We recommend that you<br />

experiment with different setFetchSize values to determine which<br />

value gives the best performance for your application. The Cursor<br />

method is useful for queries that produce a large amount of data,<br />

particularly if multiple open result sets are used.<br />

The default is Direct.<br />

197 <strong>Progress</strong> <strong>Sonic</strong> <strong>ESB</strong> <strong>Configuration</strong> <strong>and</strong> <strong>Management</strong> <strong>Guide</strong> 8.5

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

Saved successfully!

Ooh no, something went wrong!