sys.dm_db_xtp_index_stats (Transact-SQL)

適用於:SQL ServerAzure SQL DatabaseAzure SQL 受控執行個體

包含自上次資料庫重新啟動後收集的統計數據。

如需詳細資訊,請參閱 記憶體內部 OLTP(記憶體內部優化)在記憶體優化數據表上使用索引的指導方針。

資料行名稱 資料類型 描述
object_id bigint 這個索引所屬之對象的標識碼。
xtp_object_id bigint 對應至物件目前版本的內部識別碼。

注意:適用於 SQL Server 2016 (13.x)。
index_id bigint 索引的識別碼。 index_id只在物件內是唯一的。
scans_started bigint 執行記憶體內部 OLTP 索引掃描的數目。 每個選取、插入、更新或刪除都需要索引掃描。
scans_retries bigint 需要重試的索引掃描數目,
rows_returned bigint 自數據表建立或 SQL Server 開頭之後傳回的數據列累計數目。
rows_touched bigint 自建立數據表或 SQL Server 開頭之後存取的數據列累計數目。
rows_expiring bigint 僅供內部使用。
rows_expired bigint 僅供內部使用。
rows_expired_removed bigint 僅供內部使用。
phantom_scans_started bigint 僅供內部使用。
phatom_scans_retries bigint 僅供內部使用。
phantom_rows_touched bigint 僅供內部使用。
phantom_expiring_rows_encountered bigint 僅供內部使用。
phantom_expired_rows_encountered bigint 僅供內部使用。
phantom_expired_removed_rows_encountered bigint 僅供內部使用。
phantom_expired_rows_removed bigint 僅供內部使用。
object_address varbinary(8) 僅供內部使用。

權限

需要目前資料庫的 VIEW DATABASE STATE 許可權。

SQL Server 2022 和更新版本的權限

需要資料庫上的 VIEW DATABASE PERFORMANCE STATE 權限。