CHANGELOG.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. v1 - 08-02-2011 - Initial release
  2. v1.1 - 15-02-2011 - Added support for maintaining current index padding options;
  3. Added logic for Exception of hypothetical objects;
  4. Deal with LOB compaction when reorganizing;
  5. Corrected bug with update stats kicking in when not supposed to;
  6. Corrected options not compatible with partitioned indexes;
  7. v1.2 - 10-03-2011 - Increased control over new or changed database handling;
  8. v1.2.1 - 22-03-2011 - Corrected method of finding available processors;
  9. v1.3 - 21-06-2011 - Added more options to act upon statistics (IX related or Table-wide);
  10. Added finer thresholds for updates on table-wide statistics when reorganizing (when SAMPLED or DETAILED scanMode is selected);
  11. Added option for no_recompute on index REBUILD;
  12. Added restrictions for spatial and XML indexes;
  13. Always rebuild filtered indexes;
  14. If found, output list of disabled or hypothetical indexes so that you can act on them;
  15. Added range scan count to logging table for comparison;
  16. Added update index related stats (with defaults) before rebuild operations. This provides better cardinality estimation, and thus a more time-efficient operation when rebuilding;
  17. Bug fix in Reorganize statements.
  18. Bug fix in one Rescanning condition.
  19. v1.3.1 - 28-06-2011 - Corrected issue with commands running on multiple partitions.
  20. Changed behaviour of update statistics when tables have multiple partitions.
  21. v1.3.2 - 01-07-2011 - Changed objects named %Exclusions to %Exceptions. When re-deploying, existing %Exclusions table will be renamed and not recreated.
  22. Added procedure to check current batch execution progress (usp_CurrentExecStats)
  23. v1.3.3 - 08-07-2011 - Corrected issue where explicit change in database scope parameter did not trigger rescan under certain conditions.
  24. Corrected statistics update thresholds.
  25. v1.3.4 - 22-07-2011 - Bug fix in indexes information regarding the sql version.
  26. v1.3.5 - 15-11-2011 - Bug fix in logging showing as NULL on some issued commands.
  27. Optimizations on support SP usp_AdaptiveIndexDefrag_Exceptions.
  28. v1.3.6 - 17-02-2012 - Allow larger object names in tables and indexes.
  29. v1.3.7 - 27-02-2012 - Enhanced error reporting view to incorporate stats updates;
  30. Bug fix when certain index options were chosen together.
  31. v1.3.8 - 28-02-2012 - Corrected view that reports last run;
  32. Added upgrade mode.
  33. v1.3.9 - 12-03-2012 - Fixed upgrade mode in case old data cannot be copied back.
  34. v1.4.0 - 12-04-2012 - Fixed issue with collation sensitive servers.
  35. v1.4.1 - 17-05-2012 - Fixed issue on support SP usp_AdaptiveIndexDefrag_Exceptions.
  36. v1.4.2 - 29-05-2012 - Fixed issue on support SP usp_AdaptiveIndexDefrag_CurrentExecStats,
  37. Fixed issue with large object IDs.
  38. v1.4.3 - 29-08-2012 - Fixed issue with upgrade mode data retention,
  39. Fixed issue with format dependent conversions.
  40. v1.4.4 - 10-09-2012 - Fixed issue where running the procedure to print commands only, previous execution errors would still be reported.
  41. v1.4.5 - 12-10-2012 - Added support for ignoring errors regarding database objects that were dropped since the defrag cycle began;
  42. Added support for disabling indexes before rebuilding (space saving feature) - see notes below on parameter @disableNCIX.
  43. v1.4.6 - 23-01-2013 - Added hard limit of 4 for MaxDOP setting;
  44. Changed default for statistics update to updates all stats in table, as opposed to just index related stats;
  45. Fixed issue on support SP usp_AdaptiveIndexDefrag_CurrentExecStats reporting incorrect number of already defraged indexes;
  46. Fixed null elimination message with vw_LastRun_Log;
  47. Incremented debug mode output;
  48. Redesigned table wide statistics update (updateStatsWhere parameter);
  49. Fixed issue with upgrade mode leaving old tables behind.
  50. v1.4.7 - 28-01-2013 - Fixed issue with exceptions not working with on some days i.e, on a day that should not be doing anything, it did;
  51. Tuned online rebuild options;
  52. Redesigned support SP usp_AdaptiveIndexDefrag_Exceptions.
  53. v1.4.9 - 11-04-2013 - Added support for Enterprise Core Edition;
  54. Added support for Always On secondary replicas;
  55. Changed maxdop hard limit to 8;
  56. Added support for sys.dm_db_stats_properties in statistics update, if on SQL 2008R2 SP2 or SQL 2012 SP1 or higher.
  57. v1.5.0 - 25-04-2013 - Fixed issue with online rebuilds;
  58. Fixed issue with commands not being printed when choosing @ExecPrint = 0.
  59. v1.5.1 - 01-05-2013 - Fixed issue with page locking off and trying index reorganize - should always rebuild;
  60. Fixed issue with specific db scope and Always On replica checking;
  61. Enhanced stats lookup for specific table scope;
  62. Fixed issue where disable index would also do extra update on previous index related statistic;
  63. Added support for online rebuild with LOBs in SQL Server 2012.
  64. v1.5.1.1- 02-05-2013 - Fixed MaxDOP issue introduced in v1.4.9;
  65. Fixed issue with DETAILED scan mode;
  66. Fixed issue with extended indexes not being picked up.
  67. v1.5.1.2- 05-05-2013 - Fixed issue with print command while executing introduced in v1.5.1;
  68. Fixed issue where a statistics update error would show in the log associated with an XML or Spatial index.
  69. v1.5.1.4- 10-05-2013 - Fixed issue with statistics update when there is no work to be done, introduced in v1.5.1.
  70. v1.5.2 - 17-06-2013 - Added option for lock timeout;
  71. Set deadlock priority to lowest possible;
  72. Simulate TF 2371 behavior on update statistics threshold;
  73. Fixed issue with @updateStatsWhere = 1 where not all non-index related statistics were updated.
  74. v1.5.3 - 02-07-2013 - Fixed issue with updating statistics and XML indexes;
  75. Fixed issue with log data being partially overwritten;
  76. Fixed issue where using @fillfactor to reset fill factor to default would not actually reset.
  77. v1.5.3.1- 08-07-2013 - Fixed issue where using @fillfactor to reset fill factor to default would output command error.
  78. v1.5.4 - 12-09-2013 - Changed system database exclusion choices;
  79. Fixed fill factor information not getting logged (thanks go to Chuck Lathrope);
  80. All statistics update now included in exception days rule.
  81. Changed partition handling to avoid unwarranted scanning and speed up process on tables with many partitions.
  82. v1.5.5 - 24-10-2013 - Added more verbose to debug mode;
  83. Fixed issue with error while keeping original fill factor when it was already set to 0 on the index;
  84. Fixed issue with error 35337 or 2706 on update statistics.
  85. v1.5.6 - 27-11-2013 - Added SQL 2014 support for online partition rebuild;
  86. Tuned LOB support with online operations;
  87. Improved detection of scope changes - saves unneeded database scans;
  88. Optimized defrag cycle pre-work with partially excluded DBs;
  89. Fixed issue with skipping partially excluded databases;
  90. Added resilience for CS collations.
  91. v1.5.7 - 14-01-2014 - Fixed issue on support SP usp_AdaptiveIndexDefrag_Exceptions with SQL Server 2005;
  92. Fixed issue with support SP usp_AdaptiveIndexDefrag_CurrentExecStats.
  93. v1.5.8 - 10-05-2014 - Added SQL 2014 support for Online Lock Priority;
  94. Fixed issue introduced in previous version where an Online rebuild operation could not be executed in SQL 2012.
  95. v1.5.9 - 17-11-2014 - Fixed issue on support SP usp_AdaptiveIndexDefrag_PurgeLogs.
  96. v1.6 - 18-11-2014 - Added resilience when objects are dropped while being scanned, avoiding error 2573.
  97. v1.6.1 - 04-02-2015 - Removed dependency of @scan_mode to use TF 2371 behavior for statistics update;
  98. Improved support for Columnstore indexes on SQL 2014, with specific rebuild threshold and reorg option.
  99. v1.6.2 - 10/3/2016 - Added option to determine whether to exclude blobs from fragmentation scan;
  100. Added support for incremental statistics;
  101. Fixed PK issue with columnstore fragmentation discovery.
  102. Fixed issue where auto created statistics would not be picked up for update.
  103. v1.6.3 - 10/14/2016 - Fixed issue with statistics collection in SQL Server 2012 and below;
  104. Fixed issue where indexes on views generated error 1934.
  105. v1.6.3.1 - 10/26/2016 - Fixed failed migration from v1.6.2 with NULL insert error;
  106. Fixed issue when running in debug mode.
  107. v1.6.3.2 - 11/4/2016 - Fixed DISABLE index applying to NCCI.
  108. Fixed statistics not being updated before index rebuild - introduced in v1.6.2;
  109. Fixed misplaced index disable statement if @Exec_Print = 0;
  110. Fixed issue with statistics collection in SQL Server 2012 and below;
  111. Added statistic related info to log table (rows, mod counter, rows sampled).
  112. v1.6.3.3 - 11/7/2016 - Rolled back previously reported issue with REORGANIZE and database names.
  113. v1.6.4 - 11/10/2016 - Fixed support for incremental statistics in SQL Server 2016 RTM.
  114. v1.6.4.1 - 11/16/2016 - Added support for incremental statistics in SQL Server 2016 SP1.
  115. v1.6.4.2 - 1/20/2017 - Fixed support for incremental statistics introduced error 4104.
  116. v1.6.5 - 2/18/2017 - Fixed empty columnstore indexes being picked up;
  117. Fixed orphaned statistic not being updated and preventing rescan;
  118. Fixed getting null comparison in sys.indexes (only on SQL 2005, SQL 2008 or SQL 2008R2 pre-SP2);
  119. Fixed insert error into tbl_AdaptiveIndexDefrag_Stats_log table.
  120. v1.6.5.1 - 3/3/2017 - Added custom threshold parameter for percent of changes needed to trigger statistics update, overriding default handling;
  121. Added parameter for min rows to be considered with custom threshold parameter.
  122. v1.6.5.2 - 4/13/2017 - Lowered min threshold for @statsThreshold setting.
  123. v1.6.5.3 - 4/30/2017 - Fixed error in debug summary.
  124. v1.6.5.4 - 8/04/2017 - Fixed error where @minPageCount wasn't getting passed into @ColumnStoreGetIXSQL (by hitzand)
  125. v1.6.5.5 - 8/11/2017 - Added support for fixed sampling rate for statistics.
  126. v1.6.5.7 - 10/19/2017 - Extended support for CCI under SQL 2016 and above.
  127. v1.6.6 - 1/11/2018 - Added support to set or reset compression setting on all rowstore indexes;
  128. Added support for MAXDOP in statistics operations.
  129. v1.6.6.1 - 1/12/2018 - Improved stats operations logging: stats that were updated as part of index rebuild, or where stats update was not needed at runtime are now logged. Columns [rows] and [rows_sampled] will have value -1.
  130. v1.6.6.2 - 2/24/2018 - Fixed stats operation logging issue when using @Exec_Print = 0;
  131. Fixed vw_LastRun_Log view.
  132. v1.6.6.3 - 3/27/2018 - Fixed stats operation logging issue.
  133. v1.6.6.4 - 6/25/2018 - Tested with Azure SQL Managed Instance;
  134. Added extra debug output.
  135. v1.6.6.5 - 9/23/2018 - Fixed issue where table that is compressed would become uncompressed (by d-moloney);
  136. Extended row mode counter info data type in debug mode (by d-moloney);
  137. Fixed issue with @statsThreshold and large tables (by AndrewG2).
  138. v1.6.6.6 - 10/28/2018 - Extended 2nd row mode counter info data type in debug mode (by CodyFitzpatrick);
  139. Fixed compression data missing in working table (by ravseer).
  140. v1.6.6.7 - 04/17/2019 - Fixed resumable index DMV syntax error issue.
  141. v1.6.6.8 - 06/19/2019 - Addressed DCR #102 by d-moloney;
  142. Capped the max columnstore frag calculation to 100 (issue #115 by timlandrum).
  143. v1.6.6.9 - 06/26/2019 - Fixed issues running in Azure SQL Database.
  144. v1.6.7 - 09/19/2019 - Added additional debug info;
  145. Fixed additional issues running in Azure SQL Database;
  146. Fixed issue with resumable index discovery on SQL Server 2017+.