Query time 0.00187
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "174.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "30.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": 30,
"rows_produced_per_join": 30,
"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 ('3621','3622','3623','3625','3626','3628','3629','3630','3631','3632','3633','3634','3635','3636','3637','3638','3639','3640','3641','3642','3643','3644','3645','3646','3647','3648','3649','3650','3651','3652')))",
"cost_info": {
"read_cost": "66.01",
"eval_cost": "6.00",
"prefix_cost": "72.01",
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "108.01",
"data_read_per_join": "22K"
},
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "144.01",
"data_read_per_join": "17K"
},
"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 |
HLLG445D.jpg |
1024 |
1024 |
N |
8819 |
3621 |
product |
10784 |
M |
0 |
|
10784 |
0 |
HLLG455.jpg |
5112 |
3005 |
N |
8820 |
3622 |
product |
10785 |
M |
0 |
|
10785 |
0 |
HLLG464.jpg |
6048 |
4032 |
N |
8821 |
3623 |
product |
10786 |
M |
0 |
|
10786 |
0 |
HLLG551.jpg |
591 |
651 |
N |
8823 |
3625 |
product |
10788 |
M |
0 |
|
10788 |
0 |
HLLG552.jpg |
591 |
910 |
N |
8824 |
3626 |
product |
10789 |
M |
0 |
|
10789 |
0 |
HLLG554.jpg |
4032 |
6048 |
N |
8826 |
3628 |
product |
10791 |
M |
0 |
|
10791 |
0 |
HLLG555.jpg |
4032 |
6048 |
N |
8827 |
3629 |
product |
10792 |
M |
0 |
|
10792 |
0 |
HLLG812.jpg |
2448 |
1790 |
N |
8828 |
3630 |
product |
10793 |
M |
0 |
|
10793 |
0 |
HLLG821.jpg |
550 |
550 |
N |
8829 |
3631 |
product |
10794 |
M |
0 |
|
10794 |
0 |
HLLG831.jpg |
550 |
550 |
N |
8830 |
3632 |
product |
10795 |
M |
0 |
|
10795 |
0 |
HLLG861.jpg |
550 |
550 |
N |
8831 |
3633 |
product |
10796 |
M |
0 |
|
10796 |
0 |
HLLG883.jpg |
4273 |
2450 |
N |
8832 |
3634 |
product |
10797 |
M |
0 |
|
10797 |
0 |
HP00016W.jpg |
800 |
1091 |
N |
8833 |
3637 |
product |
10798 |
M |
0 |
|
10798 |
0 |
HP1738.jpg |
550 |
550 |
N |
8834 |
3638 |
product |
10799 |
M |
0 |
|
10799 |
0 |
HP1739.jpg |
550 |
550 |
N |
8835 |
3639 |
product |
10800 |
M |
0 |
|
10800 |
0 |
HP1741.jpg |
550 |
550 |
N |
8836 |
3640 |
product |
10801 |
M |
0 |
|
10801 |
0 |
HP1742.jpg |
550 |
550 |
N |
8837 |
3641 |
product |
10802 |
M |
0 |
|
10802 |
0 |
HP728.jpg |
800 |
1091 |
N |
8838 |
3642 |
product |
10803 |
M |
0 |
|
10803 |
0 |
HPC7110.jpg |
800 |
1091 |
N |
8839 |
3643 |
product |
10804 |
M |
0 |
|
10804 |
0 |
HPC7210.jpg |
800 |
1091 |
N |
8840 |
3644 |
product |
10805 |
M |
0 |
|
10805 |
0 |
HPC7300.jpg |
800 |
1091 |
N |
8841 |
3645 |
product |
10806 |
M |
0 |
|
10806 |
0 |
HPL510.jpg |
1181 |
1041 |
N |
8842 |
3646 |
product |
10807 |
M |
0 |
|
10807 |
0 |
HPL6200.jpg |
800 |
1091 |
N |
8843 |
3647 |
product |
10808 |
M |
0 |
|
10808 |
0 |
HPL700.jpg |
709 |
475 |
N |
8844 |
3648 |
product |
10809 |
M |
0 |
|
10809 |
0 |
HPL730.jpg |
800 |
1091 |
N |
8845 |
3649 |
product |
10810 |
M |
0 |
|
10810 |
0 |
HPL735.jpg |
739 |
992 |
N |
8846 |
3650 |
product |
10811 |
M |
0 |
|
10811 |
0 |
HPL752DB.jpg |
876 |
584 |
N |
8847 |
3651 |
product |
10812 |
M |
0 |
|
10812 |
0 |
HPL752DG.jpg |
871 |
592 |
N |
8848 |
3652 |
product |
10813 |
M |
0 |
|
10813 |
0 |
DKS-70008.jpg |
1000 |
1000 |
N |
10031 |
3635 |
product |
11996 |
M |
0 |
|
11996 |
0 |
item_XL_6939000_4710611.jpg |
600 |
367 |
N |
10032 |
3636 |
product |
11997 |
M |
0 |
|
11997 |