MySql Index Fill Factor?

回眸只為那壹抹淺笑 提交于 2020-02-02 03:46:22

问题


How do you specify the Fill Factor when creating an index in MySql?


回答1:


You don't.

http://dev.mysql.com/doc/refman/5.0/en/create-index.html

However, it is an 'accepted' feature request for version 6.x: http://bugs.mysql.com/bug.php?id=18178

So, don't hold your breath on seeing it any time soon.




回答2:


Assuming that you are using InnoDB, it seems like this is only supported at database level, not index level.

The setting is called innodb_fill_factor and defaults to 100 see https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_fill_factor for more details.



来源:https://stackoverflow.com/questions/331115/mysql-index-fill-factor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!