on 01-28-2008 11:56 AM
Hi,
is it allowed from SAP to create own index on system or user table? Is allowed to make dbcc dbreindex on table?
thanks
Petr
I don't even neeed to look to know that the offical SAP answer is No.
Have you checked the avg_fragmentation_in_percent, avg_page_space_used_in_percent from sys.dm_db_index_physical_stats?
These stats tell you if your index needs reorganizing or defragging.
1) avg_fragmentation_in_percent > 15 is a candidate for a rebuild
2) avg_page_space_used_in_percent < 60 is a candidate for a rebuild
I would create a SQL maintenance plan with a rebuild all indexes job before I thought about adding a new index.
eg.
select index_id, avg_fragmentation_in_percent, avg_page_space_used_in_percent from sys.dm_db_index_physical_stats
(db_id('Your_database'), object_id('table'), null, null, 'detailed') where index_id <> 0
to rebuild a single index
alter index all on <tablename>
rebuild with (fillfactor = 90)
unless you have enterprise version of sql you will want to do this after hours.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
8 | |
8 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.