What is the maximum number of mysql Data tables?

Source: Internet
Author: User
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.

  1. There should be an upper limit,UNSIGNED INTEGER,4.2 billionYes.
  2. The number of files that the file system supports to open at the same time is very limited, generally at the K level.
  3. 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.
  4. We recommend that you use a single database to facilitate distributed deployment and migration.
  5. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.