zoukankan      html  css  js  c++  java
  • MySQL部分索引

    部分索引

    char/varchar2太长,全部做索引的话,效率低,浪费存储空间

    select avg(length(username)) from 

    索引统计:

    • show index from table
    • select * from I_S.STATISTICS
    • mysql.innodb_index_stats

    MySQL5.7索引利用率:

    select index_name,rows_selected,rows_updated,rows_deleted from schema_index_statistics where table_schema='scott' and table_name='emp';

    查看冗余索引:schema_redundant_indexes

    索引隐式转换:

    select * from t1 where user=123; 不会利用user列的索引,首先将user转换成assic码

  • 相关阅读:
    HDU 2795
    HDU 1394
    HDU 1754
    HDU 1166
    SDOI 2006
    HDU 1423
    HDU 1561
    centos7.4 搭建zabbix-server 3.4.5
    vim 简单笔记
    jdk环境并配置环境变量
  • 原文地址:https://www.cnblogs.com/elontian/p/9136479.html
Copyright © 2011-2022 走看看