Why Defragmenting Your Indexes Isn’t Helping with Brent Ozar

  Рет қаралды 23,152

GroupBy

GroupBy

Күн бұрын

Пікірлер: 10
@nezbrun872
@nezbrun872 3 жыл бұрын
Been doing SQL Server since 1991. I still have regular uphill battles with colleagues and clients regarding index rebuilds. I can't ever remember seeing any significant benefit of doing a rebuild that appropriate stats updates wouldn't fix on their own. Often these rebuilds are done on tables with highly transient data during a maintenance window, after data processing has completed, so the value is negligible, other than to exercise the data center aircon. The only good news is that thanks to modern storage hardware & multiple cores, and presumably better algorithms inside SQL Server itself such as parallelism, the speed of doing a rebuild is _much_ faster than it once was.
@matthanson1325
@matthanson1325 7 жыл бұрын
I have a slight quibble about the "Monitoring this stuff" slide about 6 minutes in. Brent says that finding both the internal and external fragmentation involves scanning all of the pages. If I'm not mistaken, that's true of internal fragmentation, but external fragmentation can be measured without going all the way down to the leaf level pages (i.e. LIMITED mode). It's a bit beside the point here because the overall thrust of the presentation is that we shouldn't be worrying so much about external fragmentation anyway, but if you were going to worry about it, you might as well do so a little more efficiently :)
@Youhavebeenprogrammed
@Youhavebeenprogrammed 4 жыл бұрын
B tree indexes are self balancing right? So this is also a reason not to rebuild the index... Am I correct?
@JeremyMitts
@JeremyMitts 5 жыл бұрын
INTs don't go to a bajillion, Brent! they only go up to a little over 2.1 billion! (some of us learned that the hard way.)
@christiaan6488
@christiaan6488 6 жыл бұрын
How can you rebuild data pages please? I have exact copies of 2 tables, same database, same data types, same numbers, one is 1.2gig one is 1.6gig in size. I am trying to understand why, and how to get the storage to the minimum.
@GroupbyOrg
@GroupbyOrg 6 жыл бұрын
For questions, head to a Q&A site like dba.stackexchange.com.
@christiaan6488
@christiaan6488 6 жыл бұрын
I rebuilt the indexes and... perfect match. Thank you for your help.
@mavenchows
@mavenchows 7 жыл бұрын
15:27
@fakecorelevel
@fakecorelevel 3 жыл бұрын
this is a stolen video
@jeffmoden4332
@jeffmoden4332 Жыл бұрын
Stolen from who?
6 Scary SQL Surprises & Mistakes  With Brent Ozar| Redgate
52:47
Redgate Software
Рет қаралды 39 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 64 МЛН
Каха и лужа  #непосредственнокаха
00:15
SQL Query Optimization. Why is it so hard to get right?
1:39:24
Brent Ozar Unlimited
Рет қаралды 36 М.
Brent Ozar_Watch Brent Tune Queries
1:06:57
SQLugSWE
Рет қаралды 65 М.
What To Do When SQL Server is Slow   Brent Ozar
58:50
DBAFundamentals
Рет қаралды 41 М.
Watch Brent Tune Queries 2020
51:32
Brent Ozar Unlimited
Рет қаралды 24 М.
Fragmentation Explained in 20 Minutes
18:40
SQLBits
Рет қаралды 14 М.
Blocking and Locking: How to Find and Fight Concurrency Problems
58:29
Brent Ozar Unlimited
Рет қаралды 50 М.
Identifying and Fixing Parameter Sniffing Issues
51:53
Brent Ozar Unlimited
Рет қаралды 47 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 64 МЛН