SQL Server uses high CPU when searching inside nvarchar strings

前端 未结 5 862
孤独总比滥情好
孤独总比滥情好 2020-12-08 15:05

Check out the following example. It shows that searching within a unicode string (nvarchar) is almost eight times as bad as searching within a varchar string. And on par wit

5条回答
  •  -上瘾入骨i
    2020-12-08 15:12

    Looking for an explanation for this.

    NVarchar is 16 bit and Unicode comparison rules are a lot more complicated than ASCII - special chars for the various languages that are supported at the same time require quote some more processing.

提交回复
热议问题