Closed quanmaiepi closed 1 month ago
Looking closely at the code, it seems the column is defined as NVARCHAR(2000) which makes it not indexable. hmm
One "reasonable" approach is to add a hashed value column and index on that. there might be caveat but that should work reasonably well
As this is a frequently queried column, the lack of an index on this column is hurting performance. I'd go as far as suggesting adding a clustered index on this one.