Use the Parameters Settings to Define the SQL Query Row and Size Limit

The Parameters section of the Server Configuration Tool includes properties that you can use to define the maximum number of rows and the maximum amount of memory permitted in a single SQL Query result set. You might have to adjust these settings if you have SQL Queries that have to be run on a regular basis and return large result sets that exceed the default limits. If this happens, you have two options:

If you need to change the SQL Query Row and Size limits, you should:

  1. Access the Geo SCADA Expert Server Configuration Tool.
  2. Expand the SQL Query Configuration branch.
  3. Select the Parameters branch to display the SQL Query Parameters section.

  4. Use the Query Row Limit field to define the maximum number of rows that can be returned in the result set for a single SQL Query. The default amount is 5000000.

    If you increase the Query Row Limit, you should also increase the Query Size Limit by a corresponding amount. You should maintain to maintain the ratio of these settings, for example, if you increase the Query Row Limit by 300% to 15000000 , you should also increase the Query Size Limit by 300% to 750MB.

    ATTENTION: Increasing the Query Row Limit may affect performance.

  5. Use the Query Size Limit field to define the maximum size, in megabytes, that can be used to store the result set of a single SQL Query. The Query Size Limit field default is 250MB.
  6. Usually, you will only need to increase the Query Size Limit if you have also increased the Query Row Limit (the Query Size Limit needs to be increased by the same percentage amount as the Query Row Limit, as mentioned in step 4).
  7. Apply the changes to the server.
  8. Perform the same procedure on any other servers on your system.

Disclaimer

Geo SCADA Expert 2022