Query time 0.00113
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "111.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "20.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": 20,
"rows_produced_per_join": 20,
"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 ('8757','9074','9075','9077','9078','9865','9866','9905','9922','9923','9926','9928','9929','9941','9962')))",
"cost_info": {
"read_cost": "39.01",
"eval_cost": "4.00",
"prefix_cost": "43.01",
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "67.01",
"data_read_per_join": "15K"
},
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "91.01",
"data_read_per_join": "11K"
},
"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-V600-SMOKE.jpg |
355 |
355 |
N |
18840 |
8757 |
product |
20802 |
M |
0 |
|
20802 |
0 |
actionsleeve_black2_c9c77751-c0ca-470e-b470-b0a32c890fd3.jpg |
1500 |
1500 |
N |
19644 |
9962 |
product |
21606 |
M |
0 |
|
21606 |
0 |
THL-TETD215DS_LS.jpg |
800 |
800 |
N |
19897 |
9074 |
product |
21859 |
M |
0 |
|
21859 |
0 |
thu1.jpg |
744 |
492 |
N |
19898 |
9075 |
product |
21860 |
M |
0 |
|
21860 |
0 |
THL-TSTB334MIN_LS2.jpg |
800 |
800 |
N |
19900 |
9077 |
product |
21862 |
M |
0 |
|
21862 |
0 |
THL-TVIR-116-BLK_LS6.jpg |
800 |
800 |
N |
19901 |
9078 |
product |
21863 |
M |
0 |
|
21863 |
0 |
STM-111-171P-01_1.jpg |
1000 |
1000 |
N |
20686 |
9865 |
product |
22648 |
M |
0 |
|
22648 |
0 |
STM_TRILOGY_BLUE.jpg |
1080 |
1080 |
N |
20687 |
9866 |
product |
22649 |
M |
0 |
|
22649 |
0 |
TC-BLABK_LS2.jpg |
800 |
800 |
N |
20726 |
9905 |
product |
22688 |
M |
0 |
|
22688 |
0 |
THL-TCBP317K_LS.jpg |
800 |
800 |
N |
20743 |
9922 |
product |
22705 |
M |
0 |
|
22705 |
0 |
THL-TCBP417K_LS.jpg |
800 |
800 |
N |
20744 |
9923 |
product |
22706 |
M |
0 |
|
22706 |
0 |
THL-TSD340DSH_LS2.jpg |
800 |
800 |
N |
20747 |
9926 |
product |
22709 |
M |
0 |
|
22709 |
0 |
THL-TSLB315DSHv.jpg |
900 |
595 |
N |
20749 |
9928 |
product |
22711 |
M |
0 |
|
22711 |
0 |
min1_429cc41f-3f6d-4890-94ef-1cf48b3267b3.jpg |
900 |
595 |
N |
20750 |
9929 |
product |
22712 |
M |
0 |
|
22712 |
0 |
THL-TVIR-116-BLK_1.jpg |
910 |
1279 |
N |
20762 |
9941 |
product |
22724 |
M |
0 |
|
22724 |