Java JDBC driver causes serious performance issue with Microsoft SQL Server when setting property sendStringParametersAsUnicode to true

Solution Verified - Updated -

Issue

  • Java JDBC driver causes serious performance issue with Microsoft SQL Server when setting property sendStringParametersAsUnicode to true.
  • Performance degradation in RH-SSO Database where it is observed that implicit conversion is heavily impacting read times during queries (e.g 1400 reads vs. 3 reads if done without conversion)
  • We are observing performance issue in RH-SSO, where looking closely we found out large number of CONVERT_IMPLICIT events in our SQL database. These events are happening because the system is incorrectly supplying userID with type NVARCHAR to SQL database, when the USER_ID column is in fact of type VARCHAR.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
  • Red Hat Single Sign-On (RH-SSO)
  • Microsoft SQL Server Database

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content