Please enter search query.
Search <product_name> all support & community content...
Article: 100031020
Last Published: 2018-02-22
Ratings: 0 0
Product(s): Enterprise Vault
Problem
High SQL fragmentation levels will degrade Enterprise vault performance.
When logical fragmentation levels are above 50% and/or extent fragmentation levels are above 70%, EV will experience degraded performance and possible failures.
Extents should be 1 higher than Extent switches. If excessive switching is occurring, EV will experience degraded performance and possible failures.
Solution
In SQL Server Management Studio, right click the desired database, then click “New Query”
- Type the following: “DBCC Showcontig WITH All_Indexes, tableresults”
- From the menu bar, click Query| Results To | Results to file
- Click Execute, then browse to the desired location and save the result file.
- Once the query completes, copy the results file to a machine where Excel is installed.
- Open Excel
- Click the “Data” tab
- Click the “From Text” button
- Browse to the location where the results file was saved
- Change the file type selection, to all files
- Select the results file and click “Import”
- Choose “Fixed Width” and click “Finish”
- Delete Row 2 as it only contains dashes that will affect the layout of the page.
- Hold control, and press the “End” key
- Press the “Home” key
- The bottom 4 rows should be a blank row, the number of rows affected, another blank row, and an execution completed row. These rows also need to be deleted as they will affect the layout of the page.
- Hold control, and press the “Home” key
- Click the gray square above the number 1 and to the left of the A column (this will highlight the entire sheet)
- Place the cursor over the vertical line between the A and B columns. When the cursor changes to a vertical line with arrows pointing left and right, double click the vertical line to collapse all columns to the minimum area required to see all content in the cells.
- Highlight the entire sheet as described in step 18, then click the “Sort” button
- Check the box labeled “My data has headers” and sort by IndexId, smallest to largest.
- Click “Ok”
- Delete all rows where the IndexId is equal to 0, as IndexId 0 represents a SQL heap, and is not used in this analysis.
- Repeat steps 20 – 22, and sort by “Pages”, smallest to largest
- Delete any rows where “Pages” is less than 1000, as these are not a concern
- Delete the following unneeded columns:
- ObjectId
- Level
- MinimumRecordSize
- MaximumRecordSize
- AverageRecordSize
- ForwardedRecords
- AverageFreeBytes
- AveragePageDensity
- ScanDensity
- BestCount
- ActualCount
- Sort the remaining data for fragmentation levels and extent switches as needed.
- Based on the results found, if needed, perform SQL maintenance as described in 000040169 to reduce SQL fragmentation