Replies: 2 comments 1 reply
-
/cc @FroMage, @loicmathieu |
Beta Was this translation helpful? Give feedback.
-
Thanks. Didn't know that was possible. Worth mentioning in the transaction docs (https://quarkus.io/guides/transaction or maybe https://quarkus.io/guides/hibernate-orm)? The docs only mention using UserTransaction or injecting EntityManager...nothing about using EntityManager to do raw queries (though admittedly, you shouldn't have to). Chased down my issue a bit...turned out the code was doing Cascade.ALL on the child objects as well as the parent. This didn't manifest as a slowdown when testing against a local mysql container locally, but did in production because of the slower jdbc roundtrip times. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to mix Panache and JDBC access?
I have some Panache code that is taking unusually long to run when talking to CloudSQL....doesn't do anything complicated beyond adding a bunch of rows in two tables with one having foreign keys to the other so I can't see why it's taking so long. Extending the transaction timeout to 5min still is timing out 🤔
I was wondering if it'd be faster to do this using raw JDBC code...
Beta Was this translation helpful? Give feedback.
All reactions