Fulltext Index Study8:Resouce Consumption
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Fulltext Index Study8:Resouce Consumption相关的知识,希望对你有一定的参考价值。
一,查看Disk Consumption
1,通过SSMS查看Full-Text Index 的 Disk Consumption
在Storage-》Full Text Catalogs,选择某一个Catalog,点击属性,查看Catalog Size,就是位于Catalog中的属于fulltext的internal tables的总大小。
2,Population Schedule
通过Population Schedule tab,创建schedule和Job,按照schedule对fulltext index进行reorganize。
ALTER FULLTEXT CATALOG [fulltext_catalog_name] REORGANIZE;
3,查询每个Table的Fragments的size
--fragment SELECT [table] = OBJECT_SCHEMA_NAME(table_id) + ‘.‘ + OBJECT_NAME(table_id), logical_size_MB = CONVERT(DECIMAL(12,2), SUM(data_size/1024.0/1024)) FROM sys.fulltext_index_fragments -- WHERE table_id = OBJECT_ID(‘dbo.specific_table_name‘) GROUP BY table_id;
data_size:Logical size of the fragment in bytes.
二,在Fulltext Index Population时,查看memory consumption
参考《Fulltext Index Study6:Monitor Population》
通过sys.dm_fts_memory_buffers 查看memory buffers used by a full-text crawl,通过sys.dm_fts_memory_pools查看memory pools used by a full-text crawl.
--returns the total shared memory owned by the Microsoft Full-Text Gatherer component SELECT SUM(buffer_size * buffer_count)/1024 AS total_memory_KB FROM sys.dm_fts_memory_pools
参考doc:
sys.fulltext_index_fragments (Transact-SQL)
sys.dm_fts_memory_pools (Transact-SQL)
sys.dm_fts_memory_buffers (Transact-SQL)
以上是关于Fulltext Index Study8:Resouce Consumption的主要内容,如果未能解决你的问题,请参考以下文章
Fulltext Index Study2:Pupulate
FullText Index5: fundamental component