Skip to content

disabling N'...' quoting for strings #124

@bpokosh

Description

@bpokosh

I'm told that for our database using the following syntax is hurting performance:

SELECT FROM table WHERE field = N'...'

Because the field is a varchar (not unicode), being compared to a nvarchar value (unicode) is causing a performance hit.

Looking at the Quoting module it doesn't look like there is a way to override this behavior. Does it make sense to disable it when enable_default_unicode_types is false?

Metadata

Metadata

Assignees

No one assigned

    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