StartsWith...
Posted: Thu 17 Sep 2009 09:44
When using StartsWith, the resultant SQL uses position which means an index is not used. This makes what should be a lightening quick search very slow. Is this just another Entities quirk that it is not using like '$1%'?
[/code]
Code: Select all
clientName.TblAddresses.Line1.ToUpper().StartsWith(address.ToUpper())
Code: Select all
WHERE (position(upper($1) in upper("Extent2"."Line1"))) = 1