-
Notifications
You must be signed in to change notification settings - Fork 377
Closed
Labels
in: statement-builderSQL Statement builder APISQL Statement builder APIstatus: invalidAn issue that we don't feel is validAn issue that we don't feel is valid
Description
Ricardo Mayerhofer opened DATAJDBC-594 and commented
We've been investigating an issue where we had a 100x performance drop when switching from JdbcTemplate to NamedParameterJdbcTemplate in batch update operations.
We found out that the root cause is the handling of null values by StatementCreatorUtils:setNull, which in turn calls getParameterMetadata from the connection. It seems this issue a database call for every row to be inserted (call stack from profiler attached) which basically kills the performance gains of the batch insert.
We're using Postgres as back-end database. Spring JDBC 5.2.5 (didn't find the correct version on the list, maybe I messed up with something).
Thanks
Affects: 2.0.3 (Neumann SR3)
Attachments:
- namedparameterjdbctemplate_stack.png (322.64 kB)
Metadata
Metadata
Assignees
Labels
in: statement-builderSQL Statement builder APISQL Statement builder APIstatus: invalidAn issue that we don't feel is validAn issue that we don't feel is valid