Creating reports and dashboards | Stimulsoft community forum
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
We are carrying out some tests and notices that the query timeout field is not being respected, setting a value and even so the system does not respect the passed value.
Print and video follow.
expected action https://www.stimulsoft.com/en/documenta ... ueries.htm
7 - The Query Timeout parameter is used to specify the execution time of a query, which means time during which the request will be executed. If the request timed out and the request failed, the user will see a message about this. The parameter value is indicated in seconds.
We pass this value (or if defined StiOptions.Dictionary.getQueryTimeout()) to java.sql.Statement & it processed with corresponding DB driver. We can't influence it
The "StiOptions.Dictionary.getQueryTimeout" setting should not influence the query timeout in the report execution process in Stimulsoft.
Does this configuration not allow you to set a maximum value for the time a query can take to complete?
By defaults StiOptions.Dictionary.getQueryTimeout is 0, so QueryTimeout for every java.sql.Statement takes from SqlSource, default value is 3000 sec = 5 min,
if StiOptions.Dictionary.getQueryTimeout not equals 0 -> QueryTimeout for every java.sql.Statement takes from StiOptions.Dictionary.getQueryTimeout
Vadim.
So if you set StiOptions.Dictionary.getQueryTimeout to 5 min for example, all java.sql.Statement statements will have a time limit of 5 min to complete execution. If a statement exceeds this limit, it should be stopped.
However this is not happening.
TecnologiaMV wrote: ↑Thu Jul 06, 2023 11:45 am
So if you set StiOptions.Dictionary.getQueryTimeout to 5 min for example, all java.sql.Statement statements will have a time limit of 5 min to complete execution.
Right
TecnologiaMV wrote: ↑Thu Jul 06, 2023 11:45 am
If a statement exceeds this limit, it should be stopped.
However this is not happening.
We pass timeout value to java.sql.Statement (requests to DB) & it processed with corresponding DB driver. We can't influence it