Email Match field = '@hotmail.com'
Email Match field entered: Results 1199 - speed of return 40 seconds
Email Match field not entered: Results 429 - speed of return 1.6 seconds
SELECT * FROM emails e where e.[From] like '%@hotmail.com%' OR e.[To] like '%@hotmail.com%'order by [id] DESC
I have to use % at start and end because i want to search this in email addresses
Thanks
Edit:
Execution plan of original query