Query time 0.00095
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "52.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "9.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": 9,
"rows_produced_per_join": 9,
"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 ('10041','10083','10085','10046','10069','10051','10065','4584','5984')))",
"cost_info": {
"read_cost": "19.81",
"eval_cost": "1.80",
"prefix_cost": "21.61",
"data_read_per_join": "864"
},
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "1.80",
"prefix_cost": "32.41",
"data_read_per_join": "6K"
},
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "1.80",
"prefix_cost": "43.21",
"data_read_per_join": "5K"
},
"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 |
item_XXL_28942640_85004010.jpg |
352 |
424 |
N |
11403 |
5984 |
product |
13365 |
M |
0 |
|
13365 |
0 |
31tfFD_EudL_3yzh-9y.jpg |
500 |
500 |
N |
18663 |
10065 |
product |
20625 |
M |
0 |
|
20625 |
0 |
41TbSpeTGWL._SL1000__vry5-dw.jpg |
1000 |
1000 |
N |
18674 |
10069 |
product |
20636 |
M |
0 |
|
20636 |
0 |
51CoseOdpUL._SL1000__j242-kj.jpg |
1429 |
1000 |
N |
18724 |
10083 |
product |
20686 |
M |
0 |
|
20686 |
0 |
61uosf0j1pl._sl1200__62im-of.jpg |
1200 |
1200 |
N |
18727 |
10085 |
product |
20689 |
M |
0 |
|
20689 |
0 |
item_XXL_28942637_85003857.jpg |
344 |
408 |
N |
83961 |
4584 |
product |
13361 |
M |
0 |
|
13361 |
0 |
41Dwb2Usf7L_t897-w4.jpg |
500 |
500 |
N |
85016 |
10051 |
product |
20619 |
M |
0 |
|
20619 |
0 |
51wLcudizWL._SL1000__2va5-hj.jpg |
1000 |
1000 |
N |
85022 |
10046 |
product |
20634 |
M |
0 |
|
20634 |
0 |
mi_speaker_web.jpg |
640 |
626 |
N |
85025 |
10041 |
product |
57231 |
M |
0 |
|
57231 |