Bug #63173 | MySql hangs in state statistics - only with specific amount of data-rows | ||
---|---|---|---|
Submitted: | 9 Nov 2011 21:15 | Modified: | 13 Dec 2011 19:43 |
Reporter: | t p | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 5.1, 5.5 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | hangs, statistics state select |
[9 Nov 2011 21:15]
t p
[10 Nov 2011 6:54]
Valeriy Kravchuk
Side note: I do not see "user" table accessed in your query. Please, send the output of: show variables like 'optimizer%'; from the environments affected.
[10 Nov 2011 21:37]
t p
hi! the select-statement joins the user-table multiple times: `user` column_62_user,`user` column_63_user,`user` column_64_user,`user` column_65_user,`user` column_66_user,`user` column_67_user, here is the output for show variables like 'optimizer%': optimizer_prune_level 1 optimizer_search_depth 62 optimizer_switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on thanks for any help!
[11 Nov 2011 8:05]
Valeriy Kravchuk
Please, specify exact version, 5.1.x and 5.5.y, affected. Then, please, try to execute these queries after: set session optimizer_search_depth=0; See bug #41740 for reference.
[13 Nov 2011 12:12]
t p
hi again! server versions: System 1: version 5.0.67 version_comment Source distribution version_compile_machine i686 version_compile_os apple-darwin8.11.1 System 2: version 5.1.49-3-log version_comment (Debian) version_compile_machine x86_64 version_compile_os debian-linux-gnu System 3: version | 5.5.17-log version_comment | MySQL Community Server (GPL) version_compile_machine | x86_64 version_compile_os | linux2.6 after setting the optimizer_search_depth to 0 the query executes (after some time). is it recommended to keep it set to 0 (for "auto" as i understand)?
[13 Nov 2011 19:43]
Valeriy Kravchuk
So, we have a workaround... Yes, value 0 is much better than 62 in general. Or set it to N where N is equal to maximum number of tables joined plus 1.
[14 Dec 2011 7:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".