Query time 0.00112
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "150.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "28.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": 28,
"rows_produced_per_join": 28,
"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 ('37260','37261','37262','37263','37264','37265','37266','37267','37268','37269','37270','37271','37272','37273','37274','37275')))",
"cost_info": {
"read_cost": "49.61",
"eval_cost": "5.60",
"prefix_cost": "55.21",
"data_read_per_join": "2K"
},
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.00",
"eval_cost": "5.60",
"prefix_cost": "88.81",
"data_read_per_join": "21K"
},
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.00",
"eval_cost": "5.60",
"prefix_cost": "122.41",
"data_read_per_join": "16K"
},
"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 |
download__2_.jpg |
225 |
225 |
N |
58425 |
37260 |
product |
60381 |
M |
0 |
|
60381 |
0 |
81mjAJX0JwL._SL1500_.jpg |
1500 |
1441 |
N |
58427 |
37262 |
product |
60383 |
M |
0 |
|
60383 |
0 |
41dMUcdj5dL.jpg |
500 |
500 |
N |
58429 |
37263 |
product |
60385 |
M |
0 |
|
60385 |
0 |
81bu_040PBL._SL1500_.jpg |
1500 |
1125 |
N |
58430 |
37264 |
product |
60386 |
M |
0 |
|
60386 |
0 |
51oRYa1_F9L._SX522_.jpg |
522 |
522 |
N |
58431 |
37265 |
product |
60387 |
M |
0 |
|
60387 |
0 |
71vcetihAXL._SL1500_.jpg |
1500 |
1500 |
N |
58433 |
37266 |
product |
60389 |
M |
0 |
|
60389 |
0 |
816yXGvgdKL._SL1500_.jpg |
1500 |
1500 |
N |
58434 |
37267 |
product |
60390 |
M |
0 |
|
60390 |
0 |
510jWzsBFhL._SL1080_.jpg |
1080 |
1080 |
N |
58438 |
37268 |
product |
60394 |
M |
0 |
|
60394 |
0 |
61u_sqq9-hL._SL1080_.jpg |
1080 |
1080 |
N |
58440 |
37269 |
product |
60396 |
M |
0 |
|
60396 |
0 |
375x500.42009.jpg |
375 |
500 |
N |
58443 |
37270 |
product |
60399 |
M |
0 |
|
60399 |
0 |
o.44683.jpg |
600 |
600 |
N |
58447 |
37271 |
product |
60403 |
M |
0 |
|
60403 |
0 |
91GIh4EdAmL._SL1500_.jpg |
1500 |
1500 |
N |
58449 |
37272 |
product |
60405 |
M |
0 |
|
60405 |
0 |
375x500.39350.jpg |
375 |
500 |
N |
58453 |
37261 |
product |
60409 |
M |
0 |
|
60409 |
0 |
61A3ky6LblL._SL1500_.jpg |
958 |
1500 |
N |
59234 |
37275 |
product |
61190 |
M |
0 |
|
61190 |
0 |
61r6brZRyfL._SL1080_.jpg |
1080 |
1080 |
N |
59235 |
37274 |
product |
61191 |
M |
0 |
|
61191 |
0 |
719PnTPi-5L._SL1500_.jpg |
910 |
1500 |
N |
59238 |
37273 |
product |
61194 |
M |
0 |
|
61194 |