我是看了美团的文章 : http://tech.meituan.com/MT_Le... 想到的, 不太明白
mysql官方原话是:
If the primary key is long, the secondary indexes use more space, so it is advantageous to have a short primary key
比如 uuid 当主键, 主键空间就变大了, 为啥会导致secondary indexes空间占用也大呢, 搞不明白
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号