Bug #110275 | The number of tables increases, the table creation speed slows down. | ||
---|---|---|---|
Submitted: | 6 Mar 2023 4:42 | Modified: | 7 Mar 2023 8:58 |
Reporter: | xinsong jia | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S5 (Performance) |
Version: | 8.0.25 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Table creation performance |
[6 Mar 2023 4:42]
xinsong jia
[6 Mar 2023 4:44]
xinsong jia
shell script
Attachment: Create_table.sh (text/x-sh), 59.38 KiB.
[6 Mar 2023 13:59]
MySQL Verification Team
Hi Mr. jia, Thank you for your bug report. However, we do not understand what is the problem that you report. If you increase the concurrency significantly, then the performance per thread will deteriorate, due to many semaphores, mutexes, MDL locks etc ...... If you increase number of tables created, dramatically, then yes, performance for each new DDL shall get slower and slower, since the sizes of all the relevant caches are remaining the same. This is basic knowledge and you can understand it if you read fully our Reference Manual. Not a bug.
[7 Mar 2023 8:58]
xinsong jia
Hello, Thank you very much for your reply. As shown in the script, I create the same number of tables concurrently each time (e.g. 400 tables), and the next 400 tables can be created only after the last 400 tables are created, neither increased concurrency nor the number of tables created. As the total number of tables stored in the database instance increases, the time required to create 400 tables increases, is this normal and also because the sizes of all the relevant caches are remaining the same? Best wishes & regards
[7 Mar 2023 13:19]
MySQL Verification Team
Hi Mr. jia, Yes, this is normal since the number of your tables has surpassed all created table caches. There are several table caches, about which you can read in the Reference Manual. At certain point, any of those table caches gets filled up, you do not increase their sizes, so the creation speed slows down, naturally !!! As explained in our Reference Manual. Not a bug ......