Query time 0.00111
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "121.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "22.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": 22,
"rows_produced_per_join": 22,
"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 ('9885','9886','9887','9888','9889','9890','9891','9892','9893','9894','9895','9896','9897','9898','9899','9900')))",
"cost_info": {
"read_cost": "42.41",
"eval_cost": "4.40",
"prefix_cost": "46.81",
"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": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "22.00",
"eval_cost": "4.40",
"prefix_cost": "73.21",
"data_read_per_join": "16K"
},
"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": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "22.00",
"eval_cost": "4.40",
"prefix_cost": "99.61",
"data_read_per_join": "13K"
},
"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 |
STM-222-165JW-01.jpg |
488 |
488 |
N |
20706 |
9885 |
product |
22668 |
M |
0 |
|
22668 |
0 |
STM-222-165JW-02_2.jpg |
1117 |
1500 |
N |
20707 |
9886 |
product |
22669 |
M |
0 |
|
22669 |
0 |
STM-222-165L-01_1.jpg |
815 |
1024 |
N |
20708 |
9887 |
product |
22670 |
M |
0 |
|
22670 |
0 |
STM-222-165L-04_3.jpg |
600 |
600 |
N |
20709 |
9888 |
product |
22671 |
M |
0 |
|
22671 |
0 |
STM-222-165L-29_1.jpg |
553 |
553 |
N |
20710 |
9889 |
product |
22672 |
M |
0 |
|
22672 |
0 |
STM-222-167L-01.jpg |
1500 |
922 |
N |
20711 |
9890 |
product |
22673 |
M |
0 |
|
22673 |
0 |
STM-222-194J-01_2.jpg |
225 |
225 |
N |
20712 |
9891 |
product |
22674 |
M |
0 |
|
22674 |
0 |
STM-222-197JV-01.jpg |
1500 |
1174 |
N |
20713 |
9892 |
product |
22675 |
M |
0 |
|
22675 |
0 |
STM-222-197JV-02.jpg |
1500 |
1174 |
N |
20714 |
9893 |
product |
22676 |
M |
0 |
|
22676 |
0 |
STM-222-197JV-03.jpg |
1500 |
1174 |
N |
20715 |
9894 |
product |
22677 |
M |
0 |
|
22677 |
0 |
STM-222-197L-01.jpg |
1500 |
1500 |
N |
20716 |
9895 |
product |
22678 |
M |
0 |
|
22678 |
0 |
STM-222-197L-02.jpg |
1500 |
1500 |
N |
20717 |
9896 |
product |
22679 |
M |
0 |
|
22679 |
0 |
STM-222-197L-03.jpg |
1500 |
1500 |
N |
20718 |
9897 |
product |
22680 |
M |
0 |
|
22680 |
0 |
STM-222-202L-01.jpg |
3051 |
1771 |
N |
20719 |
9898 |
product |
22681 |
M |
0 |
|
22681 |
0 |
STM-222-216L-01.jpg |
1500 |
1174 |
N |
20720 |
9899 |
product |
22682 |
M |
0 |
|
22682 |
0 |
TC-BDA-MB1213_LS.jpg |
800 |
800 |
N |
20721 |
9900 |
product |
22683 |
M |
0 |
|
22683 |