Query time 0.00117
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "280.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "55.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": 55,
"rows_produced_per_join": 55,
"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 ('29859','29860','29861','29862','29863','29864','29865','29866','29867','29868','29869','29870','29871','29872','29873','29874')))",
"cost_info": {
"read_cost": "82.01",
"eval_cost": "11.00",
"prefix_cost": "93.01",
"data_read_per_join": "5K"
},
"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": 55,
"filtered": "100.00",
"cost_info": {
"read_cost": "55.00",
"eval_cost": "11.00",
"prefix_cost": "159.01",
"data_read_per_join": "42K"
},
"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": 55,
"filtered": "100.00",
"cost_info": {
"read_cost": "55.00",
"eval_cost": "11.00",
"prefix_cost": "225.01",
"data_read_per_join": "32K"
},
"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 |
41_SIojpjkL.jpg |
500 |
500 |
N |
47363 |
29874 |
product |
49325 |
M |
0 |
|
49325 |
0 |
618cFod3mxL._SL1500_.jpg |
1500 |
1500 |
N |
47366 |
29873 |
product |
49328 |
M |
0 |
|
49328 |
0 |
61ovmyF5ahL._SL1000_.jpg |
1000 |
1000 |
N |
47368 |
29872 |
product |
49330 |
M |
0 |
|
49330 |
0 |
41_skEVV0AL.jpg |
491 |
500 |
N |
47370 |
29871 |
product |
49332 |
M |
0 |
|
49332 |
0 |
31nYLFe7HzL.jpg |
500 |
462 |
N |
47372 |
29870 |
product |
49334 |
M |
0 |
|
49334 |
0 |
41z5CfJMeCL.jpg |
500 |
500 |
N |
47374 |
29869 |
product |
49336 |
M |
0 |
|
49336 |
0 |
51P19YdkKnL._SL1000_.jpg |
1000 |
1000 |
N |
47376 |
29868 |
product |
49338 |
M |
0 |
|
49338 |
0 |
51GnxEvdoML._SL1001_.jpg |
1001 |
1001 |
N |
47378 |
29866 |
product |
49340 |
M |
0 |
|
49340 |
0 |
41-ECmDYN8L.jpg |
500 |
500 |
N |
47379 |
29865 |
product |
49341 |
M |
0 |
|
49341 |
0 |
21bV4aMM5PL.jpg |
500 |
428 |
N |
47380 |
29864 |
product |
49342 |
M |
0 |
|
49342 |
0 |
51TL4heFG8L.jpg |
500 |
500 |
N |
47381 |
29863 |
product |
49343 |
M |
0 |
|
49343 |
0 |
4140euq-KfL.jpg |
500 |
427 |
N |
47382 |
29862 |
product |
49344 |
M |
0 |
|
49344 |
0 |
41kiOyOyVaL.jpg |
500 |
409 |
N |
47383 |
29861 |
product |
49345 |
M |
0 |
|
49345 |
0 |
41IdY01J2EL._SX466_.jpg |
466 |
473 |
N |
47384 |
29860 |
product |
49346 |
M |
0 |
|
49346 |
0 |
41A5tutZgmL.jpg |
500 |
500 |
N |
47730 |
29867 |
product |
49691 |
M |
0 |
|
49691 |
0 |
31hZ8uoaCDL.jpg |
500 |
457 |
N |
47732 |
29859 |
product |
49693 |
M |
0 |
|
49693 |