In other discussion you showed just 7x performance difference (instead of 77x here) on a very simple benchmark so something’s not adding up. Maybe raw java.util.HashMap
is just much faster than the column name to column index mapping that is built into your JDBC driver? Have you tried creating your own Map[String, Int]
for column name to column index mapping and then using only column index when invoking JDBC API?
2 Likes