Bug #116309 | Performance of TPC-H Query | ||
---|---|---|---|
Submitted: | 7 Oct 2024 10:39 | Modified: | 22 Oct 2024 11:32 |
Reporter: | JINSHENG BA | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S5 (Performance) |
Version: | 596f0d23 (9.0.0), 9.1.0 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | Any |
[7 Oct 2024 10:39]
JINSHENG BA
[15 Oct 2024 18:42]
JINSHENG BA
May I check whether there is any info I can provide to reproduce/analyze this case?
[16 Oct 2024 6:00]
MySQL Verification Team
Hello Jinsheng Ba, Thank you for the report and feedback. My apologies for the delay. Could you please share exact make options used for the build, MySQL server configurations file used? Also, I assume scale factor used is 1G(from your other Bug #116271). regards, Umesh
[16 Oct 2024 6:10]
JINSHENG BA
I used the default configuration options: ``` git clone https://github.com/mysql/mysql-server cd mysql-server git checkout 596f0d23 mkdir build cd build cmake make -j$(nproc) ``` For the data scale, this case is based on 2GB. You can check the data in the docker container.
[16 Oct 2024 6:11]
JINSHENG BA
The ".." is missed for cmake. ``` git clone https://github.com/mysql/mysql-server cd mysql-server git checkout 596f0d23 mkdir build cd build cmake .. make -j$(nproc) ```
[16 Oct 2024 6:17]
MySQL Verification Team
Thank you for the details. regards, Umesh
[21 Oct 2024 16:04]
JINSHENG BA
May I ask whether it is reproducible? If so, is the MySQL community interested in such cases?
[21 Oct 2024 16:17]
MySQL Verification Team
Hi JINSHENG BA, Thank you once again for follow up on this. As development expect non-docker steps, I was trying to setup everything locally and verify on physical boxes. I had issues building TPC-H, which I fixed today(Thanks to George Ma, who had shared a copy and HOW TO on TPC-H in one of his bug report which I'm using here ) and hopefully by tomorrow will be able to verify/reproduce Bug #116309 & Bug #116241. Thank you once again and sorry for the delay. regards, Umesh
[22 Oct 2024 10:38]
MySQL Verification Team
Thank you for being patient with me on this. I'm not sure how much this patch fixes the issue but observed the behaviour and hope that development team would take a look at this and take a call further on the suggested patch. I'll be joining the verification results file shortly. Thank you. Note - Synopsis says "YPC-H Query 8" but How to/Description uses "Query 16", do you mind if I change Synopsis to reflect the same? Thank you. regards, Umesh
[22 Oct 2024 10:39]
MySQL Verification Team
9.1.0 - test results (with and without the suggested patch)
Attachment: 116309.results.txt (text/plain), 18.30 KiB.
[22 Oct 2024 11:32]
JINSHENG BA
>I had issues building TPC-H. Sorry for that! My apologies for using docker. Actually, I am happy to provide my entire data folder or any other info if you need it. >I'm not sure how much this patch fixes the issue but observed the behaviour and hope that development team would take a look at this and take a call further on the suggested patch. Thanks for looking into it! Yes, I should clarify that it is not a proposed correct patch. Instead, I want to show that there exists a much more efficient query plan for executing TPC-H benchmark, and I am wondering whether we can optimize the the query optimizer to enable the more efficient query plan in default. I believe, at least, it improves the execution efficiency on the TPC-H benchmark.