Unix Technical Forum

question on reindex

This is a discussion on question on reindex within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi, i have several tables in production whose contents are renewd totally in 1 week. So everyd day we ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 09:30 PM
paul
 
Posts: n/a
Default question on reindex

Hi,
i have several tables in production whose contents are renewd totally in 1
week. So everyd day we delete ~15% records and then insert 15% new.
And after a few days, the performances drops :

TABLE level scan performed.
- Pages Scanned................................: 169617
- Extents Scanned..............................: 21630
- Extent Switches..............................: 153827
- Avg. Pages per Extent........................: 7.8
- Scan Density [Best Count:Actual Count].......: 13.78% [21203:153828]
- Logical Scan Fragmentation ..................: 45.06%
- Extent Scan Fragmentation ...................: 52.66%
- Avg. Bytes Free per Page.....................: 5042.5
- Avg. Page Density (full).....................: 37.70%

I can't program a dbcc reindex every day because of concurrent access (it
locks the tables too long), actually i can only program it on sunday.

What else can i do ? I can adjust the fill factor but how to find the good
value if i don't want to waste space.

The total size of the database is ~150GB.

Thx


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 09:30 PM
SQL Menace
 
Posts: n/a
Default Re: question on reindex

Have you tried defragmenting by using DBCC INDEXDEFRAG?

Unlike DBCC DBREINDEX (or the index building operation in general),
DBCC INDEXDEFRAG is an online operation. It does not hold locks long
term and thus will not block running queries or updates

Denis the SQL Menace
http://sqlservercode.blogspot.com/

paul wrote:
> Hi,
> i have several tables in production whose contents are renewd totally in 1
> week. So everyd day we delete ~15% records and then insert 15% new.
> And after a few days, the performances drops :
>
> TABLE level scan performed.
> - Pages Scanned................................: 169617
> - Extents Scanned..............................: 21630
> - Extent Switches..............................: 153827
> - Avg. Pages per Extent........................: 7.8
> - Scan Density [Best Count:Actual Count].......: 13.78% [21203:153828]
> - Logical Scan Fragmentation ..................: 45.06%
> - Extent Scan Fragmentation ...................: 52.66%
> - Avg. Bytes Free per Page.....................: 5042.5
> - Avg. Page Density (full).....................: 37.70%
>
> I can't program a dbcc reindex every day because of concurrent access (it
> locks the tables too long), actually i can only program it on sunday.
>
> What else can i do ? I can adjust the fill factor but how to find the good
> value if i don't want to waste space.
>
> The total size of the database is ~150GB.
>
> Thx


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:51 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com