Hi, I have a largish table that is 330GB, and I wanted to check the index fragmentation. It seems very slow to do so though, and when I check the IO going on in resource monitor, it is moving along at about 1MB/sec, which is far below the maximum throughput that my system can achieve, it is capable of over 150MB/sec. When I check the wait times, it is listing PAGEIOLATCH_SH as being the wait type. Is there any way I can speed up this process? I am already querying the data in limited mode with the following query: [code="sql"]select * from sys.dm_db_index_physical_stats(DB_ID(),OBJECT_ID('Server.dbo.FactTable'),NULL,NULL,'Limited') as IPS[/code]I'm working towards creating an index maintenance scheme where I only rebuild/reorganize on certain thresholds, but given this test, it looks like it is going to take a very long time to get a list of those thresholds for my database, and I'm not sure why it is achieving such a low I/O throughput, in comparison to other read/write tasks I assign to the SQL server... SQL check shows there being around 20 R/W's per second.
↧