GUACAMOLE-1796: Merge reduce SQL Server batch size to ensure fetching large lists of connections still works.

This commit is contained in:
Virtually Nick
2023-06-02 12:13:34 -04:00
committed by GitHub

View File

@@ -93,11 +93,13 @@ public class SQLServerEnvironment extends JDBCEnvironment {
* single batch when executing SQL statements for SQL Server.
*
* SQL Server supports a maximum of 2100 parameters per query. A value of
* 1000 is chosen to stay within this limit and avoid query execution errors.
* 500 is chosen to stay within this limit and avoid query execution errors,
* as some queries involve multiple parameters per item - namely retrieval
* of connections.
*
* @see https://docs.microsoft.com/en-us/sql/sql-server/maximum-capacity-specifications-for-sql-server
*/
private static final int DEFAULT_BATCH_SIZE = 1000;
private static final int DEFAULT_BATCH_SIZE = 500;
/**
* Constructs a new SQLServerEnvironment, providing access to SQLServer-specific