Kevin Griffin personal blog
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.
- Points
- 126
- HN comments
- 126
- Submissions
- 1
- Cited by
- 0 commenters
Databases & DataSoftware Engineering2026
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Mar 6, 2026 | C# strings silently kill your SQL Server indexes in Dapper by PretzelFisch | 126 | 126 |