Skip to content

Commit 7f7451c

Browse files
Update AzureSQLMaintenance.txt
based on KB4551220, skip resumable operation for indexes that hs filter
1 parent d28248c commit 7f7451c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

AzureSQLMaintenance.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
/* For any issue or suggestion please email to: [email protected] */
44
/*
55
***********************************************
6-
Current Version Date: 2022-11-08
6+
Current Version Date: 2023-07-13
77
***********************************************
88

99
Change Log:
10+
2023-07-13 - KB4551220 - skip resumable operation for indexes that has filter
1011
2022-11-08 - Ignore table value functions for index maintenance Thanks to https://github.com/Mitch-Wheat for suggesting that
1112
2022-10-06 - Fix help text that was mixed up, thanks Holger for pointing that out.
1213
2022-10-03 - Add [whatif] as the first debug option, fix - do not skip stats for reorganize.
@@ -218,6 +219,7 @@ begin
218219
,IndexName = idxs.name
219220
,idxs.type
220221
,idxs.type_desc
222+
,idxs.has_filter
221223
,i.avg_fragmentation_in_percent
222224
,i.page_count
223225
,i.index_id
@@ -267,6 +269,11 @@ begin
267269
from #idxBefore idx join sys.index_columns ic on idx.object_id = ic.object_id and idx.index_id=ic.index_id
268270
join sys.columns c on ic.object_id=c.object_id and ic.column_id=c.column_id
269271
where c.is_computed=1 or system_type_id=189 /*TimeStamp column*/
272+
273+
-- Disable resumable operation for indexes that has filter (filtered indexes) (KB4551220)
274+
update idx set ObjectDoesNotSupportResumableOperation=1
275+
from #idxBefore idx
276+
where idx.has_filter=1
270277

271278
-- set SkipIndex=1 if conditions for maintenance are not met
272279
-- this is used to idntify if stats need to be updated or not.

0 commit comments

Comments
 (0)