• mssql索引使用情况查询


    可通过查询dm_db_index_usage_stats表取得对应表索引被使用次数。
    
    列名
    
    数据类型
    
    说明
    
    database_id
    
    smallint
    
    在其中定义表或视图的数据库的 ID。
    
    object_id
    
    int
    
    为其定义索引的表或视图的 ID。
    
    index_id
    
    int
    
    索引的 ID。
    
    user_seeks
    
    bigint
    
    通过用户查询执行的搜索次数。
    
    user_scans
    
    bigint
    
    通过用户查询执行的扫描次数。
    
    user_lookups
    
    bigint
    
    由用户查询执行的书签查找次数。
    
    user_updates
    
    bigint
    
    通过用户查询执行的更新次数。
    
    last_user_seek
    
    datetime
    
    用户上次执行搜索的时间。
    
    last_user_scan
    
    datetime
    
    用户上次执行扫描的时间。
    
    last_user_lookup
    
    datetime
    
    用户上次执行查找的时间。
    
    last_user_update
    
    datetime
    
    用户上次执行更新的时间。
    
    system_seeks
    
    bigint
    
    通过系统查询执行的搜索次数。
    
    system_scans
    
    bigint
    
    通过系统查询执行的扫描次数。
    
    system_lookups
    
    bigint
    
    通过系统查询执行的查找次数。
    
    system_updates
    
    bigint
    
    通过系统查询执行的更新次数。
    
    last_system_seek
    
    datetime
    
    系统上次执行搜索的时间。
    
    last_system_scan
    
    datetime
    
    系统上次执行扫描的时间。
    
    last_system_lookup
    
    datetime
    
    系统上次执行查找的时间。
    
    last_system_update
    
    datetime
    
    系统上次执行更新的时间。
    
    详见:https://msdn.microsoft.com/zh-cn/library/ms188755.aspx
  • 相关阅读:
    Git 简要教程
    SDK更新失败问题解决
    常用安卓操作
    MongoDB本地安装与启用(windows 7/10)
    windows 快捷键收集
    windows 常用命令
    Lambda Expression Introduction
    对 load_breast_cancer 进行 SVM 分类
    Support Vector Machine
    使用 ID3 对 Titanic 进行决策树分类
  • 原文地址:https://www.cnblogs.com/fxfly/p/4644751.html
Copyright © 2020-2023  润新知