Skip to content

Doc: ParameterMetaData.getParameterType performance on Oracle 12c [SPR-16139] #20687

Closed
@spring-projects-issues

Description

@spring-projects-issues

Adam Sojka opened SPR-16139 and commented

After upgrading from Spring 4.3 to 5.0.1 the NamedParameterJdbcTemplate.batchUpdate call results in an exception ORA-01000: maximum open cursors exceeded when using with Oracle 12c.

The batchUpdate is updating batches of 250 records.

The applications code hasn't changed in method where exception is being thrown.

@SuppressWarnings("unchecked")
    public int[] saveBatchOutputs(final String updateSql, final List<Map<String, Object>> batchValuesList) {
        Map<String, Object>[] batchValues = new Map[batchValuesList.size()];
        batchValues = batchValuesList.toArray(batchValues);
        return namedParameterJdbcTemplate.batchUpdate(updateSql, batchValues);
    }

In the method the updateSql is predefined and the batchValuesList is up to 250 elements in size.


Affects: 5.0.1

Issue Links:

Referenced from: commits daee6ee

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions