惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
H
Help Net Security
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
B
Blog
I
InfoQ
SecWiki News
SecWiki News
T
Tailwind CSS Blog
Spread Privacy
Spread Privacy
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
P
Palo Alto Networks Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
Kaspersky official blog
M
MIT News - Artificial intelligence
S
Schneier on Security
T
Threat Research - Cisco Blogs
F
Fortinet All Blogs
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The Cloudflare Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
G
GRAHAM CLULEY
IT之家
IT之家
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
腾讯CDC
Google DeepMind News
Google DeepMind News
V
V2EX
S
Securelist
TaoSecurity Blog
TaoSecurity Blog
B
Blog RSS Feed
S
SegmentFault 最新的问题
博客园 - 叶小钗
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Project Zero
Project Zero
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
F
Full Disclosure

博客园 - Keep Walking

电商微博分享现状研究 关于各网站回到顶部的细节功能 大电商网站导航用户体验对比 回顾我的2010,20本书陪我度过的三十而立的年纪 运营一个网站,新增加一个功能,容易忽视哪些问题就匆匆上线? 强烈的孤独感,没有人能体味.... 改进UCHOME的记录发布,增强可访问性用户体验 关于疯狂想法的后续 一个疯狂想法 我的面试php程序员的面试题 china-pub登录问题 uchome为什么采用myisam类型表 关于验证码产品设计的一处细节问题 周五了,发给大家个好玩的东西 《高性能mysql》到手 用户体验之新浪滚动新闻 号外号外,美国53岁软件工程师架飞机撞政府楼 博客园logo HTML标签权重分值排列
mysql cardinality
Keep Walking · 2011-01-28 · via 博客园 - Keep Walking

一直以为mysql没有类似sql server那样的列统计信息数据,今天算是被我翻到了。在show index 命令里面,

 

这个值表示索引的唯一值有多少,图示表示此索引有14w的索引唯一值,也就是说选择性还行,比较合适建索引。

不过这个值的管理不是很透明,inno和myisam都是通过 analyze table 命令来更新此值。

但是这个在sql server下面,可以使用各种手段来调控该值。sample取样,百分比,统计,都可以。

一般的mysql运维DBA一般都会比较关注这个值吧,会定期 analyze table 来更新这个值。

这个值的准确与否和sql server一样,会关系到查询优化器是否选择这个索引来join,或者using。