Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reuse parameter metadata when using Always Encrypted #195

Closed
Suraiya-Hameed opened this issue Mar 13, 2017 · 1 comment
Closed

Reuse parameter metadata when using Always Encrypted #195

Suraiya-Hameed opened this issue Mar 13, 2017 · 1 comment
Assignees

Comments

@Suraiya-Hameed
Copy link
Contributor

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.

@xiangyushawn xiangyushawn self-assigned this Mar 24, 2017
@xiangyushawn xiangyushawn added the Waiting for Response Waiting for a reply from the original poster, or affiliated party label Mar 24, 2017
@Suraiya-Hameed
Copy link
Contributor Author

@v-xiangs Thanks for the fix!

@Suraiya-Hameed Suraiya-Hameed removed the Waiting for Response Waiting for a reply from the original poster, or affiliated party label Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants