Mysql has the highest performance when storing data in a table.

Source: Internet
Author: User
??? I have never known how many rows of data are stored in the InnoDB table, which is the highest performance ??? So I asked some people, and I was not final. The DBA of one of the largest e-commerce companies in China gave me a rough answer, and I felt reliable. So I will share it with you here .???? 1. A Chinese ox wrote the following :???? Note

? ? ? I have never known how many rows of data are stored in the InnoDB table, which is the highest performance? ? ? So I asked some people, and I was not final. The DBA of one of the largest e-commerce companies in China gave me a rough answer, and I felt reliable. So I will share it with you here. ? ? ? ? 1. A Chinese ox wrote the following :? ? ? ? Note

? ? ? I have never known how many rows of data are stored in the InnoDB table before, which is the highest performance.

? ? ? So I asked some people, and I was not final. The DBA of one of the largest e-commerce companies in China gave me a rough answer, and I felt reliable. So I will share it with you here.

?

? ? ? 1. A Chinese ox wrote the following paragraph:

?

? ? ? Note: unofficial Formulas

?

?

? ? ? 2. Based on the above theory, we can calculate the maximum number of theoretical rows in a bigint primary key table.

? ? ? ? ? Formula 1: (16 KB-200)/8 = 2023 rows

? ? ? ? ? Formula 2: of course, this can also be calculated as follows: (16 KB)/8-200 = 1848 rows

? ? ? ? ? Because the highest index tree of mysql is three layers (the table is the first layer), the maximum number of rows in the row should be 2023*2023 = 4092529 rows or 1848*1848 = 3415104 rows

?

?

Because I have not tested it myself, I only have 5 million rows and one table. I have never studied it in depth because I have heard that million rows is an experience. When the author has time to do so, please test it ~

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.