File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 3
3
/* For any issue or suggestion please email to:
[email protected] */
4
4
/*
5
5
***********************************************
6
- Current Version Date: 2022-11-08
6
+ Current Version Date: 2023-07-13
7
7
***********************************************
8
8
9
9
Change Log:
10
+ 2023-07-13 - KB4551220 - skip resumable operation for indexes that has filter
10
11
2022-11-08 - Ignore table value functions for index maintenance Thanks to https://github.com/Mitch-Wheat for suggesting that
11
12
2022-10-06 - Fix help text that was mixed up, thanks Holger for pointing that out.
12
13
2022-10-03 - Add [whatif] as the first debug option, fix - do not skip stats for reorganize.
@@ -218,6 +219,7 @@ begin
218
219
,IndexName = idxs.name
219
220
,idxs.type
220
221
,idxs.type_desc
222
+ ,idxs.has_filter
221
223
,i.avg_fragmentation_in_percent
222
224
,i.page_count
223
225
,i.index_id
@@ -267,6 +269,11 @@ begin
267
269
from #idxBefore idx join sys.index_columns ic on idx.object_id = ic.object_id and idx.index_id=ic.index_id
268
270
join sys.columns c on ic.object_id=c.object_id and ic.column_id=c.column_id
269
271
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
270
277
271
278
-- set SkipIndex=1 if conditions for maintenance are not met
272
279
-- this is used to idntify if stats need to be updated or not.
You can’t perform that action at this time.
0 commit comments