mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 09:03:21 +00:00 
			
		
		
		
	GUACAMOLE-1796: Merge reduce SQL Server batch size to ensure fetching large lists of connections still works.
This commit is contained in:
		| @@ -93,11 +93,13 @@ public class SQLServerEnvironment extends JDBCEnvironment { | |||||||
|      * single batch when executing SQL statements for SQL Server. |      * single batch when executing SQL statements for SQL Server. | ||||||
|      * |      * | ||||||
|      * SQL Server supports a maximum of 2100 parameters per query. A value of |      * 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 |      * @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 |      * Constructs a new SQLServerEnvironment, providing access to SQLServer-specific | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user