Query time 0.00116
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "16.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": 16,
"rows_produced_per_join": 16,
"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 ('9136','9137','9138','9139','9140','9141','9142','9143','9144','9145','9146','9147','9148','9149','9150','9151')))",
"cost_info": {
"read_cost": "35.21",
"eval_cost": "3.20",
"prefix_cost": "38.41",
"data_read_per_join": "1K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "57.61",
"data_read_per_join": "12K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "76.81",
"data_read_per_join": "9K"
},
"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 |
ASB-SBV23-GRAY.jpg |
1500 |
1500 |
N |
19959 |
9136 |
product |
21921 |
M |
0 |
|
21921 |
0 |
ASB-SBV23-LIME_3.jpg |
800 |
800 |
N |
19960 |
9137 |
product |
21922 |
M |
0 |
|
21922 |
0 |
IP092240_2.jpg |
1200 |
1200 |
N |
19962 |
9139 |
product |
21924 |
M |
0 |
|
21924 |
0 |
51AK2Ww3hcL._SL1080.jpg |
1080 |
1080 |
N |
19963 |
9140 |
product |
21925 |
M |
0 |
|
21925 |
0 |
612FZHmr6fL._SL1080.jpg |
1080 |
1080 |
N |
19964 |
9141 |
product |
21926 |
M |
0 |
|
21926 |
0 |
ASB-SWG11-YELLOW-SILV.jpg |
800 |
800 |
N |
19965 |
9142 |
product |
21927 |
M |
0 |
|
21927 |
0 |
819JedrFnRL._SL1500_02610c0b-c5a1-4a2b-a19c-50331a9406d3.jpg |
800 |
800 |
N |
19966 |
9143 |
product |
21928 |
M |
0 |
|
21928 |
0 |
ASB-V800-BLACK_2.jpg |
500 |
303 |
N |
19967 |
9144 |
product |
21929 |
M |
0 |
|
21929 |
0 |
AV1-KK-NA_LS.jpg |
800 |
800 |
N |
19968 |
9145 |
product |
21930 |
M |
0 |
|
21930 |
0 |
BA-PUMP-AIR-WH_LS.jpg |
800 |
800 |
N |
19971 |
9148 |
product |
21933 |
M |
0 |
|
21933 |
0 |
BA-PUMP-BK_2.jpg |
1102 |
1500 |
N |
19972 |
9149 |
product |
21934 |
M |
0 |
|
21934 |
0 |
BA-PUMP-LITE2-BK_LS_97658840-1a30-48d0-9160-a74392b9d27b.jpg |
800 |
800 |
N |
19973 |
9150 |
product |
21935 |
M |
0 |
|
21935 |
0 |
204777810.jpeg |
500 |
500 |
N |
21205 |
9138 |
product |
23167 |
M |
0 |
|
23167 |
0 |
Pump-air-black--rose-gold-01.png |
483 |
483 |
N |
21208 |
9146 |
product |
23170 |
M |
0 |
|
23170 |
0 |
BA-PUMP-LITE2-RD_2_e5b8ab46-63c1-4654-ae73-e7f8e32bd231_1024x.jpg |
800 |
800 |
N |
21218 |
9151 |
product |
23180 |
M |
0 |
|
23180 |
0 |
718KoFwtXtL._SL1500_.jpg |
1500 |
655 |
N |
80888 |
9147 |
product |
82831 |
M |
1 |
|
82831 |