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
I originally commented on the MR that implements this.
I was excited to see support for Connection#createArrayOf was added so I decided to build locally to try it out and I came across one issue and a question on performance.
Before I saw that this had been implemented I passed arrays as literals from java then casting the parameter to the array type in the sql, it seems passing the array literal is many times faster than using Connection#createArrayOf, I tried similar on postgres in the past and the speed improvement using Connection#createArrayOf was significant.
Quick test code (using spring)
output on M1 mac showing 1.3ms for array literal vs 6.4ms for Connection#createArrayOf, is this expected as a first implementation or do you think something is a rye?
unfortunately, I've not got the time to dig into potential performance improvements on the java side and I don't know c++ so can't help there 😓
The text was updated successfully, but these errors were encountered:
I originally commented on the MR that implements this.
I was excited to see support for
Connection#createArrayOf
was added so I decided to build locally to try it out and I came across one issue and a question on performance.Before I saw that this had been implemented I passed arrays as literals from java then casting the parameter to the array type in the sql, it seems passing the array literal is many times faster than using
Connection#createArrayOf
, I tried similar on postgres in the past and the speed improvement usingConnection#createArrayOf
was significant.Quick test code (using spring)
output on M1 mac showing 1.3ms for array literal vs 6.4ms for
Connection#createArrayOf
, is this expected as a first implementation or do you think something is a rye?unfortunately, I've not got the time to dig into potential performance improvements on the java side and I don't know c++ so can't help there 😓
The text was updated successfully, but these errors were encountered: