Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Per Paul Smith on the user@ mailing list:
....
Even with only a few thousand records in the table, the following:
create index idx_activemqmsgs_expiration on activemq_msgs(expiration)
appears to reduce the query plan cost of this scan by at least an order of magnitude, changing the scan from a Clustered Index Scan (that's just a table scan in SQL Server, if the table has a clustered index), to an index scan.