You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can be tested on postgres with select 1 from pg_sleep(15)
Phase 1 - Query timeout
check to see if spring.transaction.default-timeout works and it set in PlatformTrxManager. See links above.
If that doesn't work then lets setup a PreQueryEvent Listener. That is fired in all cases. MangoQuery fires it and Gorm fires it for all finders.
in the listener can get use the getHibernateCriteria() on the query property and set the timeout there. Lets just stick with setting it from whatever spring.transaction.default-timeout is set to.
Timeout by user or role
this will be able to be done in the PreQueryEventListner
The text was updated successfully, but these errors were encountered:
App Query Timeout
A default will be set on the database as outlined here https://www.crunchydata.com/blog/control-runaway-postgres-queries-with-statement-timeout (see here if you have 9ci access https://github.com/9ci/domain9/issues/1791)
Helpful links
timeout on transactoin, setting this level will pick up both hibernate and jdbcTemplate
query timeouts for hibernate, would change in gorm-tools
query timeout in jdbcTemplate
can be tested on postgres with
select 1 from pg_sleep(15)
Phase 1 - Query timeout
spring.transaction.default-timeout
works and it set in PlatformTrxManager. See links above.spring.transaction.default-timeout
is set to.Timeout by user or role
this will be able to be done in the PreQueryEventListner
The text was updated successfully, but these errors were encountered: