IndexOptimize worsen performance? #734
Replies: 7 comments 3 replies
-
I'll add some more details: DBMS: Microsoft SQL Server Standard 2016 64bit (version 13.0.5830.85, CU14) select distinct DTreeCore.DataID, rendition.DataID as templateID, CONCAT(DTreeCore.Name, ' - ', name.ValStr) as text, DTreeCore.DComment |
Beta Was this translation helpful? Give feedback.
-
An update. For completeness, here's the parameters to the IndexOptimize procedure: Anybody can give me some insight on why doing UpdateStatistics together with Index Fragmentation behaves that way? Best regards. |
Beta Was this translation helpful? Give feedback.
-
Hi, Enterprise or Standard? Indexing and update statistics is two different things. Now you are only updating statistics. Spinning disks or SSD drives? Many or large indexes? |
Beta Was this translation helpful? Give feedback.
-
Look at the logfile that is generated and you can see what is updated, index and statistics. |
Beta Was this translation helpful? Give feedback.
-
Could Parameter Sniffing be a potential cause? |
Beta Was this translation helpful? Give feedback.
-
A rebuild will automatically update the stats. Your initial results is
probably due to a reorg.
…On Wed, 12 Apr 2023 at 13:47, robertonunnari ***@***.***> wrote:
No idea.
—
Reply to this email directly, view it on GitHub
<#734 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOCZXOFN46W4AS5PEK6O2KLXA2P5XANCNFSM6AAAAAAWWNK3CI>
.
You are receiving this because you are subscribed to this thread.Message
ID:
<olahallengren/sql-server-maintenance-solution/repo-discussions/734/comments/5592263
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
A reorg compacts the index, a rebuild is more optimal. I've stopped using
reorg.
On Wed, 12 Apr 2023 at 16:10, Khalid Mohammed <
***@***.***> wrote:
… A rebuild will automatically update the stats. Your initial results is
probably due to a reorg.
On Wed, 12 Apr 2023 at 13:47, robertonunnari ***@***.***>
wrote:
> No idea.
>
> —
> Reply to this email directly, view it on GitHub
> <#734 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AOCZXOFN46W4AS5PEK6O2KLXA2P5XANCNFSM6AAAAAAWWNK3CI>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID:
> <olahallengren/sql-server-maintenance-solution/repo-discussions/734/comments/5592263
> @github.com>
>
|
Beta Was this translation helpful? Give feedback.
-
Hello.
I use IndexOptimize with standard parameters on several MS SQL Servers.
The problem is that when it runs, on one server performance of a particular query becomes worse. Please, find attached a graph that shows on the left the time that it took for the query to complete, and on the right the count of indexes that need rebuild or reorg.
Now I rescheduled it to run every six months because I don't want to risk performance get even worse.
Could anybody help me understand what's going on? Why it happens?
Best regards.
Roberto
Beta Was this translation helpful? Give feedback.
All reactions