Bug #108430 | performance degradation of DML operations comparing with MySQL 5.7 | ||
---|---|---|---|
Submitted: | 8 Sep 2022 13:52 | Modified: | 13 Dec 2022 9:19 |
Reporter: | Andrew Zhylenko | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S5 (Performance) |
Version: | 8.0.29 | OS: | Oracle Linux (Oracle Linux Server release 7.9 3.10.0-1160.76.1.0.1.el7.x86_64) |
Assigned to: | CPU Architecture: | x86 ( Intel(R) Xeon(R) CPU E5-2630 v3 ) |
[8 Sep 2022 13:52]
Andrew Zhylenko
[8 Sep 2022 13:59]
Andrew Zhylenko
mysql 5.7 global vars
Attachment: vars_5.7.txt (text/plain), 14.24 KiB.
[8 Sep 2022 14:00]
Andrew Zhylenko
mysql 8.0 global vars
Attachment: vars_8.0.txt (text/plain), 18.66 KiB.
[9 Sep 2022 9:17]
MySQL Verification Team
Hello Andrew Zhylenko, Thank you for the bug report and feedback. We would like to know few things here: (i) Example of INSERT query and how exactly it was executed? one by one or in batches? Thank you. Related - Bug #94387, Bug #93734, Bug #94283, Bug #100811 regards, Umesh
[9 Sep 2022 12:15]
Andrew Zhylenko
the basically the insert statement looks like INSERT INTO tt1 ( ui_pk, vc_id1, vc_id2, vc_fill1, ui_id1, ui_id2, ti_id3, ti_id4, vc_id3, dt_fill1, dt_fill2, dt_fill3, dt_fill4, vc_l1, vc_l2, vc_l3, ii_i1, ui_fill4, ii_i2, vc_l3, ui_fill1, ui_fill2, ui_fill3, ti_id2, ti_fill1, fl_fill1, ti_fill2, i_id1, ti_id1, vc_fill2, dt_exp) VALUES( NULL, ?, ?, ?, ?, ?, ?, ?, IFNULL(?,''), ?, ?, IFNULL(?,NOW()), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, IFNULL(?,0), ?, ?, ?, ?); such inserts are executed by a simple perl script with the DBI::mysql package as a db interface in a loop by issuing "execute()" method with all the bind variable on an once prepared cursor in the auto commit mode.
[12 Sep 2022 6:52]
MySQL Verification Team
Thank you, Andrew for the details. I'll get back to you if anything further needed(really appreciate if you can attach both configuration files my.cnf i.e from 5.7 and 8.0 instance instead of o/p of show global variables. If you prefer then please attach as a private).
[12 Sep 2022 8:23]
Andrew Zhylenko
the same mysql config file was used for the both MySQL 5.8 and 8.0
Attachment: my.cnf (application/octet-stream, text), 2.17 KiB.
[12 Sep 2022 8:30]
Andrew Zhylenko
I've attached the mysql config file and the same file was used for the both MySQL 5.7 and 8.0. Please also take in account that earlier I'd attached the files with the actual content of global variables of the mysql state dumped via 'show global variables; ' just before running the tests.
[27 Sep 2022 6:57]
MySQL Verification Team
Thank you for the feedback.
[13 Dec 2022 9:19]
Andrew Zhylenko
Hello, is there any progress with this bug report ?
[16 Jan 2023 3:10]
Liang Cheng
Although this bug is verifed, but I could not find any suggestion to this specific bug. This bug is very similar with to our case. If you have any suggestion, please share it. Thanks.