Skip to content

Reuse parameter metadata when using Always Encrypted #195

@Suraiya-Hameed

Description

@Suraiya-Hameed

If columnEncryptionSetting is enabled, mssql-jdbc driver calls sp_describe_parameter_encryption each time PreparedStatement is executed.

Below SQL profiler trace was generated when creating PreparedStatement and using it twice to execute.

Trace for mssql-jdbc:
alt tag

Trace for SqlClient:
image

Calling the stored procedure just once and reusing the metadata will improve the drivers performance with Always Encrypted significantly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions