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, how much is it? If I wanted to do a service that would provide PAAs to other users and allow users to freely create data tables, there would be a performance limit. For example, too many database files opened by a single server can cause noticeable performance degradation.

Reply content:

Is there a maximum number of data tables in a database? If so, how much is it? If I wanted to do a service that would provide PAAs to other users and allow users to freely create data tables, there would be a performance limit. For example, too many database files opened by a single server can cause noticeable performance degradation.

    1. There should be an upper limit, for UNSIGNED INTEGER , 42亿 more.
    2. File system support the number of simultaneous open files is very limited, generally at the K level.
    3. Before the number of tables reached the theoretical limit, there was no machine in the world to support so many tables.
    4. It is recommended that a user a library, which facilitates distributed deployment and migration.
    5. If your business needs, there is a 09-year data, MySQL 50万张表 no significant impact on performance, single-table query time 0.3s around.

Http://dev.mysql.com/doc/refman/5.7/en/database-count-limit.html

MySQL has a no limit on the number of tables. The underlying file system may has a limit on the number of files that represent tables. Individual 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.