[MDEV-585] LP:637962 - Considerable performance regression on certain queries in maria-5.1-wl24 Created: 2010-09-14 Updated: 2012-11-07 Resolved: 2012-11-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.3.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query: SELECT `col_varchar_64_key` FROM `table100000_myisam_int_autoinc` Takes no time on maria-5.1 but takes over 1 second on maria-5.1-wl24 . Even if the filesort is avoided by removing the ORDER BY, considerable performance difference remains. EXPLAIN under maria-5.1: id: 1 EXPLAIN under maria-5.1-wl24 id: 1 The table contains 100K rows and will be uploaded shortly. |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-09-14 ] |
|
Re: Considerable performance regression on certain queries in maria-5.1-wl24 |
| Comment by Philip Stoev (Inactive) [ 2010-09-14 ] |
|
mysqldump of the table |
| Comment by Philip Stoev (Inactive) [ 2010-09-16 ] |
|
Re: Considerable performance regression on certain queries in maria-5.1-wl24 |
| Comment by Philip Stoev (Inactive) [ 2010-09-16 ] |
|
Re: Considerable performance regression on certain queries in maria-5.1-wl24 MTR_VERSION=1 perl mysql-test-run.pl --start-and-exit 1st This will cause mysqld to be started with certain settings, in particular --key_buffer_size=1M --sort_buffer=256K --max_heap_table_size=1M |
| Comment by Philip Stoev (Inactive) [ 2010-09-17 ] |
|
Re: Considerable performance regression on certain queries in maria-5.1-wl24
|
| Comment by Philip Stoev (Inactive) [ 2010-09-17 ] |
|
This is a new test case for the bug
|
| Comment by Philip Stoev (Inactive) [ 2010-09-17 ] |
|
Re: Considerable performance regression on certain queries in maria-5.1-wl24 0. Take a 64-bit machine 1. Branch a fresh tree bzr branch lp:maria/5.1 maria-5.1-bug637962 2. Clear ccache ccache -C 3. Compile ./BUILD/compile-pentium-debug-max 4. Run. perl mysql-test-run.pl --record --no-check-testcases t/bug637962-2.test If successfull, MTR will report mysqltest: At line 1462: "Bug #637962 is repeatable" |
| Comment by Philip Stoev (Inactive) [ 2010-09-17 ] |
|
Re: Considerable performance regression on certain queries in maria-5.1-wl24 |
| Comment by Philip Stoev (Inactive) [ 2010-09-17 ] |
|
Diff between the FORCE KEY and IGNORE KEY result sets |
| Comment by Philip Stoev (Inactive) [ 2010-09-17 ] |
|
Re: Considerable performance regression on certain queries in maria-5.1-wl24 |
| Comment by Rasmus Johansson (Inactive) [ 2010-10-26 ] |
|
Launchpad bug id: 637962 |
| Comment by Igor Babaev [ 2010-10-26 ] |
|
Re: Considerable performance regression on certain queries in maria-5.1-wl24 |
| Comment by Igor Babaev [ 2012-10-31 ] |
|
This is a serious performance degradation that can be observed for queries with The problem is that when making a cost-based choice between an index scan and an index-merge scan the optimizer does not take into account ORDER BY ...LIMIT n. |
| Comment by Igor Babaev [ 2012-10-31 ] |
|
I'm afraid we don't have enough time to fix the problem for 5.3.10. The fixing patch will require a good testing. |
| Comment by Igor Babaev [ 2012-10-31 ] |
|
The problem is observed in mysql-5.6.7 (but not in prior releases). |
| Comment by Igor Babaev [ 2012-11-07 ] |
|
The bug was fixed and the fix was pushed into 5.3. |