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
We use a mixture of JOOQ and Hibernate (JOOQ typically for large batch inserts) in our software.
I've noticed that Hypersistence Optimizer is reporting a StatementlessConnectionEvent whenever we flush the EntityManager prior to doing something in JOOQ. For example:
I'm not sure if this is a feature of the software or if I am doing something wrong, or if it's a bug in the code which checks for StatementlessConnection events. I've tried a couple of things, such as putting jooq calls into jooq's simple transaction api, but that still leaves the EntityManager needing to be flushed prior to the jooq calls; and thus the StatementlessConnectionEvent still triggers.
Any advice?
The text was updated successfully, but these errors were encountered:
The StatementlessConnectionEvent indicates that the Connection is acquired without executing any statement, but, indeed, it doesn't intercept calls to other frameworks.
Until I figure out a way to address this requirement, you could use a custom EventFilter to filter out those events. Check out this documentation section for an example about event filtering.
Hi,
We use a mixture of JOOQ and Hibernate (JOOQ typically for large batch inserts) in our software.
I've noticed that Hypersistence Optimizer is reporting a StatementlessConnectionEvent whenever we flush the EntityManager prior to doing something in JOOQ. For example:
I'm not sure if this is a feature of the software or if I am doing something wrong, or if it's a bug in the code which checks for StatementlessConnection events. I've tried a couple of things, such as putting jooq calls into jooq's simple transaction api, but that still leaves the EntityManager needing to be flushed prior to the jooq calls; and thus the StatementlessConnectionEvent still triggers.
Any advice?
The text was updated successfully, but these errors were encountered: