扫码关注官方订阅号
一个数据库中的数据表有数量上限吗?如果有,是多少呢?如果我想做一个服务,给其它用户提供paas,允许用户自由创建数据表,那么会不会有性能上的限制。比如一台服务器打开的数据库文件太多会造成明显的性能下降。
UNSIGNED INTEGER
42亿
MySQL 50万张表
0.3s
http://dev.mysql.com/doc/refman/5.7/en/database-count-limit.html
MySQL has no limit on the number of tables. The underlying file system may have a limit on the number of files that represent tables. Inpidual storage engines may impose engine-specific constraints. InnoDB permits up to 4 billion tables.
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
UNSIGNED INTEGER
,42亿
多。MySQL 50万张表
,对性能没有明显影响,单表查询时间0.3s
左右。http://dev.mysql.com/doc/refman/5.7/en/database-count-limit.html