I have a query that I have been tuning for some time but I can’t seem to get the execution time down much. In the execution plan everything looks like it is doing what it is supposed to, no large costs associated with any particular part of the query, everything is using index seek where it is supposed to. When I run the same query against a different client it runs fairly quickly but only returns 150k records. When I run it for my biggest client it returns 600k records and takes over ten minutes.
Could my issue be that with the number of records I’m returning it will be hard to get good performance or does what I described above seem within the ability of SQL Server?
Besides the number of records, what else is different on between the two systems:
When compared the two locations for SET STATISTICS IO ON:
These are, of course, wild shots in the dark without proper data to back them up. Consider them a guess, not an authorithative solution.