SQL Server Index Maintenance - OLA Hallengren Index Optimize

  Рет қаралды 4,130

SQL Answers

SQL Answers

Күн бұрын

Пікірлер
@annwilson3840
@annwilson3840 2 жыл бұрын
This is a better update, thanks SQL
@dirtydevver
@dirtydevver 22 күн бұрын
so if i understand it correctly a vanilla install wont update statistics in any capacity unless we add a Y to that parameter instead of NULL ?
@sqlanswers
@sqlanswers 22 күн бұрын
Yes, that is correct! You need to provide a value for @UpdateStatistics parameter in order for statistics to be generated.
@leonkranjcevic4877
@leonkranjcevic4877 2 ай бұрын
I use SQL Express so I dont have SQL Agent but I want to change the time when the IndexOptimize executes. Where do I change it?
@sqlanswers
@sqlanswers 2 ай бұрын
Are you scheduling IndexOptimize now or are you looking to schedule it? If you already have a scheduler you would change the time there. If you are looking for a scheduler, you could use a Windows Task Scheduler. (Control Panel > Administrative Tools > Task Scheduler)
@leonkranjcevic4877
@leonkranjcevic4877 2 ай бұрын
@@sqlanswers Thank you so much you saved me with this.
@sqlanswers
@sqlanswers 2 ай бұрын
Glad I could help!
@maheshkharawatkar3847
@maheshkharawatkar3847 2 жыл бұрын
I wanted to only configure index reorganize using the olla hallengren. considering my database size is 10 TB should I keep the sort in tempdb option yes? Is there a way to reorganize the index without hampering the performance? How Can I configure olla hallengren scripts only for index reorganize even if the fragmentation level is above 30 %?
@sqlanswers
@sqlanswers 2 жыл бұрын
Thanks for your questions! I will try and follow up with a video, but here are some quick answers should I keep the sort in tempdb option yes? Depends on how much tempdp space you have available and how big your largest index is Is there a way to reorganize the index without hampering the performance? There is no free lunch, but you can use strategy to run index maint during off hours, split the work up, and use time limits! How Can I configure olla hallengren scripts only for index reorganize even if the fragmentation level is above 30 %? You can specify the same action for all thresholds. There is no rule that says you have to have a different action. @FragmentationMedium = 'INDEX_REORGANIZE', @FragmentationHigh = 'INDEX_REORGANIZE'
@boykaredemp6216
@boykaredemp6216 2 жыл бұрын
Hi , why Ola Hollagren index optimization job is filling up log space??
@sqlanswers
@sqlanswers 2 жыл бұрын
Hi - Index Maintenance does use a lot of log space because they generate a lot of changes to the index structures. Each index structure is modified as a single transaction, so depending on the indexes that were rebuilt that could require significant transaction log space. Transaction log space cannot be released to be reused until transactions are completed.
Discover the Benefits of SSMS Reports
7:51
SQL Answers
Рет қаралды 160
DBA Fundamentals - Backups 3 - Setting Up Maintenance Plans
22:35
Brent Ozar Unlimited
Рет қаралды 17 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Field Testing Ola Hallengren’s Maintenance Solution
19:13
SQLBits
Рет қаралды 1,5 М.
Провальные провалы
29:25
GreenGrass
Рет қаралды 239 М.
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 15 М.
Index Tuning - Page Splits & Fragmentation (by Amit Bansal)
28:08
DBA Fundamentals - Backups 4: Setting Up Ola Hallengren's Scripts for Backups
33:52
SQL Server Update Statistics with Full Scan
11:25
SQLMaestros
Рет қаралды 4,5 М.
Senior DBA Class - Index Maintenance for Enterprise Environments
43:02
Brent Ozar Unlimited
Рет қаралды 14 М.
Installing the "Ola Scripts" for SQL Server
14:12
Kevin Hill
Рет қаралды 10 М.
Computer Timescales Mapped onto Human Timescales - Computerphile
28:41
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН