Get the latest tech news

C# strings silently kill your SQL Server indexes in Dapper


If you're using Dapper with anonymous objects to query varchar columns, you're probably sending nvarchar(4000) parameters — causing CONVERT_IMPLICIT on every row and defeating your indexes. Here's the fix.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of dapper

dapper

Photo of # strings

# strings

Photo of sql server indexes

sql server indexes