46
Users / Re: Huge query in pluto_media : taking my disk down to crawling
« on: September 21, 2013, 09:41:37 pm »
explain on my side
Code: [Select]
+----+-------------+----------------+--------+--------------------+---------+---------+-----------------------------------------+------+-------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+----------------+--------+--------------------+---------+---------+-----------------------------------------+------+-------------+
| 1 | PRIMARY | <derived2> | ALL | NULL | NULL | NULL | NULL | 3017 | |
| 1 | PRIMARY | File | eq_ref | PRIMARY,FatGroupBy | PRIMARY | 4 | s.PK_File | 1 | |
| 2 | DERIVED | File | index | Path,Filename | PRIMARY | 4 | NULL | 3231 | Using where |
| 2 | DERIVED | Bookmark | ref | FK_File | FK_File | 5 | pluto_media.File.PK_File | 1 | |
| 2 | DERIVED | File_Attribute | ref | PRIMARY,FK_File | FK_File | 4 | pluto_media.File.PK_File | 2 | Using index |
| 2 | DERIVED | Attribute | eq_ref | PRIMARY | PRIMARY | 4 | pluto_media.File_Attribute.FK_Attribute | 1 | |
| 2 | DERIVED | LongAttribute | ref | FK_File | FK_File | 5 | pluto_media.File.PK_File | 1 | |
| 2 | DERIVED | Picture_File | ref | FK_File | FK_File | 4 | pluto_media.File.PK_File | 1 | |
+----+-------------+----------------+--------+--------------------+---------+---------+-----------------------------------------+------+-------------+
8 rows in set (0.10 sec)