File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4692,7 +4692,7 @@ BEGIN
46924692 JOIN #IndexSanitySize sz ON i .index_sanity_id = sz .index_sanity_id
46934693 WHERE i .index_id = 0
46944694 AND (i .total_reads > 0 OR i .user_updates > 0 )
4695- AND sz .total_rows >= 100000
4695+ AND sz .total_reserved_MB > 10240
46964696 AND h.[object_id] IS NULL /* don't duplicate the prior check.*/
46974697 OPTION ( RECOMPILE );
46984698
@@ -4731,7 +4731,7 @@ BEGIN
47314731 WHERE i .index_id = 0
47324732 AND
47334733 (i .total_reads > 0 OR i .user_updates > 0 )
4734- AND sz .total_rows >= 10000 AND sz .total_rows < 100000
4734+ AND sz .total_reserved_MB >= 1024 AND sz .total_reserved_MB <= 10240
47354735 AND h.[object_id] IS NULL /* don't duplicate the prior check.*/
47364736 OPTION ( RECOMPILE );
47374737
@@ -4770,7 +4770,7 @@ BEGIN
47704770 WHERE i .index_id = 0
47714771 AND
47724772 (i .total_reads > 0 OR i .user_updates > 0 )
4773- AND sz .total_rows < 10000
4773+ AND sz .total_reserved_MB >= 1 AND sz . total_reserved_MB < 1024
47744774 AND h.[object_id] IS NULL /* don't duplicate the prior check.*/
47754775 OPTION ( RECOMPILE );
47764776
You can’t perform that action at this time.
0 commit comments