Query time 0.00112
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "83.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "15.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": 15,
"rows_produced_per_join": 15,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'A') and (`portal`.`q_images_links`.`object_id` in ('8195','3781','3782','3783','3784','3773','3774','3775','3776','3777','3778')))",
"cost_info": {
"read_cost": "29.01",
"eval_cost": "3.00",
"prefix_cost": "32.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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.00",
"eval_cost": "3.00",
"prefix_cost": "50.01",
"data_read_per_join": "11K"
},
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.00",
"eval_cost": "3.00",
"prefix_cost": "68.01",
"data_read_per_join": "8K"
},
"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_XL_32854674_125070313.jpg |
600 |
313 |
N |
8974 |
3775 |
product |
10939 |
A |
1 |
|
10939 |
0 |
1_ttju-rb.jpg |
976 |
792 |
N |
16210 |
3774 |
product |
18172 |
A |
1 |
|
18172 |
0 |
item_XL_32854674_125070323.jpg |
530 |
480 |
N |
9023 |
3775 |
product |
10988 |
A |
2 |
|
10988 |
0 |
11_xyjz-kp.jpg |
788 |
600 |
N |
16231 |
3778 |
product |
18193 |
A |
2 |
|
18193 |
0 |
item_XL_32854674_125070332.jpg |
480 |
421 |
N |
9024 |
3775 |
product |
10989 |
A |
3 |
|
10989 |
0 |
12_g9dn-0b.jpg |
784 |
670 |
N |
16228 |
3776 |
product |
18190 |
A |
5 |
|
18190 |
0 |
122.jpg |
668 |
650 |
N |
16229 |
3776 |
product |
18191 |
A |
6 |
|
18191 |
0 |
1222.jpg |
752 |
576 |
N |
16230 |
3776 |
product |
18192 |
A |
7 |
|
18192 |
0 |
item_XL_23107672_32595539.jpg |
438 |
542 |
N |
9020 |
3773 |
product |
10985 |
A |
10 |
|
10985 |
0 |
item_XL_43456992_e2f14e56c41da.jpg |
600 |
577 |
N |
9028 |
3777 |
product |
10993 |
A |
10 |
|
10993 |
0 |
d09b7bef1ede4f07a0eb09435d6e97d6.jpg |
500 |
500 |
N |
9032 |
3781 |
product |
10997 |
A |
10 |
|
10997 |
0 |
5bfde027fb154ac8acf8f2779b12aeaa.jpg |
500 |
500 |
N |
9037 |
3783 |
product |
11002 |
A |
10 |
|
11002 |
0 |
66a93947c05a49ecb5c024cead61c004.jpg |
280 |
280 |
N |
9039 |
3784 |
product |
11004 |
A |
10 |
|
11004 |
0 |
item_XL_23107672_32595541.jpg |
600 |
306 |
N |
9021 |
3773 |
product |
10986 |
A |
20 |
|
10986 |
0 |
item_XL_43456992_f5071c8a759f9.jpg |
600 |
469 |
N |
9029 |
3777 |
product |
10994 |
A |
20 |
|
10994 |
0 |
817187a46f5946c09b42ef8789b2821c.jpg |
500 |
500 |
N |
9033 |
3781 |
product |
10998 |
A |
20 |
|
10998 |
0 |
61ffc789d7fd4e519ea984f3d1b4877f.jpg |
280 |
280 |
N |
9034 |
3781 |
product |
10999 |
A |
30 |
|
10999 |