usp_AdaptiveIndexDefrag / Not working on very large tables
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- azure, sql
- Domain
- databases, performance
Research direction
Start with dbo.usp_AdaptiveIndexDefrag and reproduce the provided execution against Azure SQL tables with more than 1 billion records. Use the enabled debug and command printing to examine the long-running reorganization and investigate the reported deadlock conditions. Done means the large-table behavior and deadlock risk are addressed without requiring application downtime.
Written by the indexing model from the issue text.
Description
It was suggested to me that the solution does not require applications downtime.
However it does not seem to be working well in Azure SQL and databases with tables having more than 1 billion of small length records (often more than 2 billion)
The process takes too long to complete the reorganization of indexes, more than a few days.
By the time this finishes the tables are fragmented again.
EXEC dbo.usp_AdaptiveIndexDefrag
@Exec_Print=1 ,
@printCmds=1 ,
@rebuildThreshold=100 ,
@rebuildThreshold_cs=100 ,
@updateStats=1 ,
@scanMode = 'LIMITED' ,
@onlineRebuild=1 ,
@minFragmentation=5 ,
@debugMode = 1 ,
@timeLimit=2880
There is also a suspicion that the tool is responsible for deadlock conditions during its run.
- Dominant language
- Jupyter Notebook
- Stars
- 1.6k
- Forks
- 749
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/tigertoolbox
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
microsoft/tigertoolbox#320 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
microsoft/tigertoolbox#199 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
microsoft/tigertoolbox#319 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoft/tigertoolbox#312 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
microsoft/tigertoolbox#307 ·
All issues in microsoft/tigertoolbox
Similar issues
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
[BUG] A column whose default is the empty string is drawn in the ER diagram as having no default Openbug database-provider good first issue hacktoberfest
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
libredb/libredb-studio#1030 · 6 comments ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug redshift
Difficulty 2/5 1-3 hours Newbie friendliness 88/100