[MDEV-27487] After upgrade from MySQL 5.6 to MariaDB 10.5 queries taking more time to execute Created: 2022-01-13 Updated: 2022-03-23 Resolved: 2022-03-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.5.12 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Pon Suresh Pandian (Inactive) | Assignee: | Sergei Petrunia |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian |
||
| Attachments: |
|
| Description |
|
Hi Team, In mysql 5.6 calculation queries finished quickly within 30 sec. After upgrade MariaDB 10.5.12
Here I have attached the explain plan, analyze json outputs and global variables output. Please check it. Let me know if you need any other details. |
| Comments |
| Comment by Sergei Petrunia [ 2022-01-24 ] | |||
|
Looking at explain_long_running_querys.md and noting differences of query plans:
| |||
| Comment by Sergei Petrunia [ 2022-01-24 ] | |||
|
MariaDB-10.5-analyse-json-output.sql actually has EXPLAIN FORMAT=JSON output, not ANALYZE output. | |||
| Comment by Sergei Petrunia [ 2022-01-24 ] | |||
|
Perf output shows that most of the time is spent reading from the join_cache.
In the query, it is:
|