Query time 0.00120
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "270.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "53.00"
},
"nested_loop": [
{
"table": {
"table_name": "q_images_links",
"access_type": "range",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"rows_examined_per_scan": 53,
"rows_produced_per_join": 53,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'M') and (`portal`.`q_images_links`.`object_id` in ('29907','30158','30160','30161','30162','30163','30164','30165','30166','30167','30168','30169','30171','30172','30173','30174')))",
"cost_info": {
"read_cost": "79.61",
"eval_cost": "10.60",
"prefix_cost": "90.21",
"data_read_per_join": "4K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "q_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"portal.q_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 53,
"filtered": "100.00",
"cost_info": {
"read_cost": "53.00",
"eval_cost": "10.60",
"prefix_cost": "153.81",
"data_read_per_join": "40K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
}
},
{
"table": {
"table_name": "q_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"portal.q_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 53,
"filtered": "100.00",
"cost_info": {
"read_cost": "53.00",
"eval_cost": "10.60",
"prefix_cost": "217.41",
"data_read_per_join": "31K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(q_common_descriptions), (`portal`.`q_common_descriptions`.`object_id` = `portal`.`q_images`.`image_id`), true)"
}
}
]
}
}
}
Result
image_id |
image_path |
image_x |
image_y |
is_high_res |
pair_id |
object_id |
object_type |
detailed_id |
type |
position |
alt |
images_image_id |
0 |
412tjpK8dJL.jpg |
500 |
429 |
N |
47416 |
29907 |
product |
49378 |
M |
0 |
|
49378 |
0 |
71z0eGywZ0L._SY445_.jpg |
334 |
445 |
N |
47932 |
30174 |
product |
49893 |
M |
0 |
|
49893 |
0 |
61B623DNHaL._SX385_.jpg |
385 |
385 |
N |
47933 |
30173 |
product |
49894 |
M |
0 |
|
49894 |
0 |
51fudrJnX6L.jpg |
500 |
500 |
N |
47934 |
30172 |
product |
49895 |
M |
0 |
|
49895 |
0 |
71Llx1LymkL._SX385_.jpg |
385 |
385 |
N |
47935 |
30171 |
product |
49896 |
M |
0 |
|
49896 |
0 |
71sWmEsboLL._SY550_.jpg |
413 |
550 |
N |
47937 |
30169 |
product |
49898 |
M |
0 |
|
49898 |
0 |
71tf7v5sqeL._SX522_.jpg |
522 |
522 |
N |
47938 |
30168 |
product |
49899 |
M |
0 |
|
49899 |
0 |
41oiumgPLZL._SX466_.jpg |
466 |
466 |
N |
47939 |
30167 |
product |
49900 |
M |
0 |
|
49900 |
0 |
610k0rXrkwL._SY445__eaje-2a.jpg |
334 |
445 |
N |
47941 |
30166 |
product |
49902 |
M |
0 |
|
49902 |
0 |
61_0nnnEs7L._SY445_.jpg |
334 |
445 |
N |
47943 |
30165 |
product |
49904 |
M |
0 |
|
49904 |
0 |
61F9mOJHlRL._SY445_.jpg |
334 |
445 |
N |
47946 |
30164 |
product |
49907 |
M |
0 |
|
49907 |
0 |
61OamiT2TqL._SY445_.jpg |
334 |
445 |
N |
47951 |
30163 |
product |
49912 |
M |
0 |
|
49912 |
0 |
81r1MYH-0eL._SY445_.jpg |
297 |
445 |
N |
47953 |
30162 |
product |
49914 |
M |
0 |
|
49914 |
0 |
61zEU8-W0qL._SY445_.jpg |
334 |
445 |
N |
47956 |
30161 |
product |
49917 |
M |
0 |
|
49917 |
0 |
71MwFkYllQL._SX522_.jpg |
522 |
522 |
N |
47957 |
30160 |
product |
49918 |
M |
0 |
|
49918 |
0 |
71Llx1LymkL._SX385__m58z-q5.jpg |
385 |
385 |
N |
47959 |
30158 |
product |
49920 |
M |
0 |
|
49920 |