Closed mryan43 closed 2 years ago
Thanks for letting me know. You can easily filter out any event using an EventFilter
. Check out this link for an example.
I'll try to replicate your use case to see if I can get the issue so that I can fix it.
Fixed.
I'm using postgresql 11.11 (driver 42.2.19) with tomcat-jdbc 10.0.12 for pooling, hibernate 5.4.28.Final and hypersistence optimizer 2.5.1. I also have another home-made jdbc proxy driver that we use at my org to detect some anti-patterns (similar to hypersistence, but with less features).
I'm enabling "reWriteBatchedInserts" at the driver level by passing the property to the tomcat pool like so :
I have enabled sql logging in hibernate and statement logging in postgres (to see if batch inserts are properly rewritten)
and on DB side
We can see that statement are properly re-written (yay), But unfortunately hypersistence optimizer keeps complaining that it's not enabled :
I'm going to use an EventFilter to silence it, but I just thought I'd let you know about the false positive :)