Is there a maximum number of data tables in a database? If so, what is it? If I want to create a service that provides paas to other users and allows them to create data tables freely, will there be performance restrictions. For example, too many database files opened on a server may cause significant performance degradation. Is there a maximum number of data tables in a database? If so, what is it? If I want to create a service that provides paas to other users and allows them to create data tables freely, will there be performance restrictions. For example, too many database files opened on a server may cause significant performance degradation.
Reply content:
Is there a maximum number of data tables in a database? If so, what is it? If I want to create a service that provides paas to other users and allows them to create data tables freely, will there be performance restrictions. For example, too many database files opened on a server may cause significant performance degradation.
- There should be an upper limit,
UNSIGNED INTEGER,4.2 billionYes.
- The number of files that the file system supports to open at the same time is very limited, generally at the K level.
- There were a lot of tables before the number of tables reached the theoretical ceiling, and there was no machine in the world that could support so many tables.
- We recommend that you use a single database to facilitate distributed deployment and migration.
- If your business needs it, there will be a data record for years,
MySQL 0.5 million tablesThe query time for a single table is not significantly affected on performance.0.3sLeft and right.
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.