[MDEV-13507] The query ate Memory cache Created: 2017-08-12 Updated: 2017-11-05 Resolved: 2017-11-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Temporary |
| Affects Version/s: | 10.0.31-galera |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Hamoon Mohammadian Pour | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | galera, mariadb, need_feedback, order-by-optimization, temporary | ||
| Attachments: |
|
| Description |
|
Today someone executed a big query in server. Update:
Table Index: This was my query:
|
| Comments |
| Comment by Elena Stepanova [ 2017-08-12 ] | |||||||||||||||||||||||||||
|
Please paste the query that was running, the output of
for every table involved in the query, and attach your cnf file(s). | |||||||||||||||||||||||||||
| Comment by Hamoon Mohammadian Pour [ 2017-08-27 ] | |||||||||||||||||||||||||||
|
Hi again. | |||||||||||||||||||||||||||
| Comment by Daniel Black [ 2017-09-19 ] | |||||||||||||||||||||||||||
|
Added order-by-optimization label as a temporary table was only created because it didn't use the auto_id index, the limit would of alluded this to a reasonable index choice however this isn't implemented. It would of used this key if it was a primary key. Use:
to confirm this. Odd that auto_id, and id are both bigint unique keys. If you don't have a good reason migrating to one would avoid this problem. | |||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-10-01 ] | |||||||||||||||||||||||||||
|
For me, even with deliberately ignored auto_id index, it still does not create a temporary table:
HamoonDBA, could you please paste the output of {{EXPLAIN SELECT ... }} as Daniel suggested above? |