[英]How can I view I/O stats of a partitioned table at the partition level
I have partitioned my table by a date column into 10 partitions and would like to see how EACH partition is getting used (I/O stats, etc.). 我已经按日期列将表划分为10个分区,并希望了解如何使用每个分区(I / O统计信息等)。 I would hope this would give some insight into how the existing queries are using individual partitions, if at all, so that I might optimize the queries.
我希望这能使您对现有查询如何使用单个分区(如果有的话)有所了解,以便我可以优化查询。 Is there a way of determining the I/O stats AT THE PARTITION LEVEL?
有没有一种方法可以确定分区级别的I / O统计信息?
Few approaches: 几种方法:
But it will work only in case if every partition resides in own filegroup 但是,只有在每个分区都位于自己的文件组中的情况下,它才起作用
This DMV can provide data structure usage stats per object/index/partition: 该DMV可以提供每个对象/索引/分区的数据结构使用情况统计信息:
sys.dm_db_index_operational_stats (
{ database_id | NULL | 0 | DEFAULT }
, { object_id | NULL | 0 | DEFAULT }
, { index_id | 0 | NULL | -1 | DEFAULT }
, { partition_number | NULL | 0 | DEFAULT }
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.