diff options
| author | Hiroshi Inoue | 2020-05-18 10:53:48 +0000 |
|---|---|---|
| committer | Hiroshi Inoue | 2020-05-20 04:56:36 +0000 |
| commit | 26b30efd0cf93478be68218090435f995809e546 (patch) | |
| tree | 24444ce41cdfcc1b8ea116f03915610e99057e27 /docs | |
| parent | 241f4578ec878a0bd9cad3a6a539059860c18d14 (diff) | |
Improve execution of parameterized SQL statements with arrays of parameters by sending chunks of SQL statements.
If SQL_ATTR_CURSOR_TYPE of an statement is SQL_CURSOR_FORWARD_ONLY, SQL_ATTR_CONCURRENCY is SQL_CONCUR_READ_ONLY and extended protocol isn't used, the batch execution of the statement is possible.
A new option Batch Size was introduced for such cases.
Batch Size: Split an array (of parameters) into chunks of Batch Size to execute statements. The last chunk may contain less than Batch Size elements. Setting 1 to this option forces the current one by one execution.
Also turn off use_server_side_prepare option temporarily when batch executuion is possible.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/config-opt.html | 11 | ||||
| -rw-r--r-- | docs/config.html | 13 |
2 files changed, 22 insertions, 2 deletions
diff --git a/docs/config-opt.html b/docs/config-opt.html index b4802a7..5665a43 100644 --- a/docs/config-opt.html +++ b/docs/config-opt.html @@ -496,6 +496,17 @@ D7 </TD> </TR> + <TR> + <TD WIDTH=38%> + Chunk size when executing batches for parameterized SQL statements with arrays of parameters. + </TD> + <TD WIDTH=31%> + BatchSize + </TD> + <TD WIDTH=31%> + D8 + </TD> + </TR> </TABLE> </TABLE> <P><BR><BR> diff --git a/docs/config.html b/docs/config.html index 66061b2..ce7bcc9 100644 --- a/docs/config.html +++ b/docs/config.html @@ -125,6 +125,10 @@ as System Tables. Tables that begin with "pg_" are always treated as system tables, even without this option. Separate each prefix with a semicolon (;)<br /> </li> +<li><b>Batch Size:</b>Chunk size when executing batches with arrays of +parameters. Setting 1 to this option forces one by one execution (the +behavior before). +<br /> </li> </ul> <h2>Advanced Options 2/3 Dialog Box</h2> @@ -157,6 +161,8 @@ option well. See the <a "https://odbc.postgresql.org/faq.html">faq</a> for details on what you need to do to your database to allow for the row versioning feature to be used.<br /> </li> +<li><b>Display Optional Error Message:</b> Display optional(detail, hint, statement position etc) error messages.<br /> </li> + <li><b>True is -1:</b> Represent TRUE as -1 for compatibility with some applications. <br /> </li> @@ -168,22 +174,25 @@ versioning feature to be used.<br /> </li> case, the query that is sent to the server for parsing will have the parameter markers replaced with the actual parameter values, or NULL literals if the values are not known yet. +<br /> </li> <li><b>Int8 As:</b> Define what datatype to report int8 columns as.<br /> </li> +<li><b>Numeric As:</b> Specify the map from numeric items without precision to SQL data types. numeric(default), varchar, double or memo(SQL_LONGVARCHAR) can be specified.<br /> </li> + <li><b>Extra Opts:</b> combination of the following bits.<br /><br> 0x1: Force the output of short-length formatted connection string. Check this bit when you use MFC CDatabase class.<br /> 0x2: Fake MS SQL Server so that MS Access recognizes PostgreSQL's serial type as AutoNumber type.<br /> 0x4: Reply ANSI (not Unicode) char types for the inquiries from applications. Try to check this bit when your applications don't seem to be good at handling Unicode data.<br /> </li> -<li><b>Protocol:</b> The libpq protocol version to use.<br /><br /> +<!-- li><b>Protocol:</b> The libpq protocol version to use.<br /><br /> This option controls two aspects of the connection, the libpq protocol version and the level of rollback on errors. For historical reasons the libpq protocol version is encoded as a PostgreSQL version number. The libpq protocol version used is the highest version, the given PostgreSQL server version supports. The level of rollback on errors is optional and is a dash separated suffix number as described below.<br /><br /> <ul> <li><i>7.4+</i>: Use the 7.4(V3) protocol. This is currently the only supported libpq protocol and this part of the parameter is currently ignored.<br /> </li> -</ul></li> +</ul></li --> <li><b>Level of rollback on errors:</b> Specifies what to rollback should an error occur.<br /> |
