Bug #80989 | Severe performance degradation from 5.6 to 5.7 with a long query on a larg table | ||
---|---|---|---|
Submitted: | 7 Apr 2016 8:09 | Modified: | 8 Apr 2016 1:29 |
Reporter: | Paolo Scaglione | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Options | Severity: | S2 (Serious) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any | |
Tags: | large query, partitioning, range_optimizer_max_mem_size |
[7 Apr 2016 8:09]
Paolo Scaglione
[7 Apr 2016 9:59]
Paolo Scaglione
Slow update into a partitioned table
Attachment: innoDB-status.txt (text/plain), 23.06 KiB.
[7 Apr 2016 10:06]
MySQL Verification Team
Hi, Can you please try setting the following variable on 5.7 and see if it has any effect. range_optimizer_max_mem_size=128*1024*1024; # size depend on how many items in the list.
[7 Apr 2016 10:12]
Paolo Scaglione
The statement lenght is variable. Sometimes there are thousands of token, we use max_allowed_packet=128M. I'll try the suggested parameter.
[7 Apr 2016 14:46]
Paolo Scaglione
With the suggested value (range_optimizer_max_mem_size=128M) the problem is solved. We also tested the value that should be the default in 5.7.12 (range_optimizer_max_mem_size=8388608) and the large update we use works fine. The problem is the default value in 5.7.11 which is too low for our query and
[7 Apr 2016 15:23]
MySQL Verification Team
the default will be increased, when https://bugs.mysql.com/bug.php?id=78973 is fixed/released
[7 Apr 2016 22:34]
Paolo Scaglione
Thanks. I think that this bug can be closed as a duplicate of 78973.