Class SqlServerSendStringParametersAsUnicodeEvent
java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.jdbc.event.JdbcDriverEvent
io.hypersistence.optimizer.jdbc.event.encoding.SqlServerSendStringParametersAsUnicodeEvent
- All Implemented Interfaces:
Event,Serializable
The
SqlServerSendStringParametersAsUnicodeEvent indicates that the current application
has not disabled the sendStringParametersAsUnicode JDBC setting.
By default, SQL Server sends the String bind parameter values as NVARCHAR,
which can affect index selection if the underlying column is VARCHAR.
So, to reduce the risk of full-table scans when there is an index available on
those String columns, this setting should be disabled.- Since:
- 2.6.0
- Author:
- Vlad Mihalcea
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.hypersistence.optimizer.core.event.Event
Event.Priority -
Constructor Summary
ConstructorsConstructorDescriptionSqlServerSendStringParametersAsUnicodeEvent(DatabaseInfo databaseInfo) Instantiate aSqlServerSendStringParametersAsUnicodeEventusing the provided JDBC Driver settings. -
Method Summary
Methods inherited from class io.hypersistence.optimizer.jdbc.event.JdbcDriverEvent
getDatabaseInfoMethods inherited from class io.hypersistence.optimizer.core.event.AbstractEvent
getInfoUrl
-
Constructor Details
-
SqlServerSendStringParametersAsUnicodeEvent
Instantiate aSqlServerSendStringParametersAsUnicodeEventusing the provided JDBC Driver settings.- Parameters:
databaseInfo- the underlying database info
-
-
Method Details
-
getPriority
Get theEvent.Priorityof thisEvent- Returns:
- the
Event.Priorityof thisEvent
-
getDescription
-