Query time 0.00184
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "155.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "29.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": 29,
"rows_produced_per_join": 29,
"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 ('2393','2394','2396','2397','2398','2399','2403','2020','2032','2042','2058','1848','1856','1868','1878','1886')))",
"cost_info": {
"read_cost": "50.81",
"eval_cost": "5.80",
"prefix_cost": "56.61",
"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": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "29.00",
"eval_cost": "5.80",
"prefix_cost": "91.41",
"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": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "29.00",
"eval_cost": "5.80",
"prefix_cost": "126.21",
"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 |
item_XXL_47494716_d67f7fb08db21.jpg |
750 |
418 |
N |
8258 |
2396 |
product |
10223 |
A |
1 |
|
10223 |
0 |
1218-blue3_z54a-dt.jpg |
817 |
1200 |
N |
83443 |
1848 |
product |
6863 |
A |
1 |
|
6863 |
0 |
1361-white2_15sx-3k.jpg |
799 |
1200 |
N |
83447 |
1856 |
product |
6902 |
A |
1 |
|
6902 |
0 |
1260-black2_8gcx-yw.jpg |
832 |
1200 |
N |
83452 |
1868 |
product |
6944 |
A |
1 |
|
6944 |
0 |
1222-blue1_n78k-an.jpg |
553 |
594 |
N |
83457 |
1878 |
product |
6970 |
A |
1 |
|
6970 |
0 |
1026-white2_l39t-9h.jpg |
800 |
1200 |
N |
83461 |
1886 |
product |
7053 |
A |
1 |
|
7053 |
0 |
1215-red1_scaw-3i.jpg |
800 |
800 |
N |
83515 |
2032 |
product |
7240 |
A |
1 |
|
7240 |
0 |
1214-red2_fsqp-ra.jpg |
700 |
1050 |
N |
83551 |
2042 |
product |
7314 |
A |
1 |
|
7314 |
0 |
item_XXL_47494716_1ee7a96e5be72.jpg |
750 |
420 |
N |
8259 |
2396 |
product |
10224 |
A |
2 |
|
10224 |
0 |
1218-blue4_zn1v-b7.jpg |
833 |
1200 |
N |
83444 |
1848 |
product |
6864 |
A |
2 |
|
6864 |
0 |
1361-white3_94u2-la_19p5-od.jpg |
799 |
1200 |
N |
83448 |
1856 |
product |
6903 |
A |
2 |
|
6903 |
0 |
1260-black3_h9mp-t1.jpg |
816 |
1200 |
N |
83453 |
1868 |
product |
6945 |
A |
2 |
|
6945 |
0 |
1222-blue3_q8k6-h1.jpg |
1000 |
666 |
N |
83458 |
1878 |
product |
6972 |
A |
2 |
|
6972 |
0 |
1026-white3_2ekf-up.jpg |
800 |
1200 |
N |
83462 |
1886 |
product |
7054 |
A |
2 |
|
7054 |
0 |
1215-red3_m75a-qo.jpg |
900 |
1200 |
N |
83516 |
2032 |
product |
7242 |
A |
2 |
|
7242 |
0 |
1214-red3_v1iz-4b.jpg |
700 |
1050 |
N |
83552 |
2042 |
product |
7315 |
A |
2 |
|
7315 |
0 |
item_XXL_47494716_83428fd4a7f7f.jpg |
750 |
724 |
N |
8260 |
2396 |
product |
10225 |
A |
3 |
|
10225 |
0 |
1218-blue1_49qy-m9.jpg |
648 |
800 |
N |
83445 |
1848 |
product |
6865 |
A |
3 |
|
6865 |
0 |
1361-white1_1ja3-28.jpg |
625 |
800 |
N |
83449 |
1856 |
product |
6901 |
A |
3 |
|
6901 |
0 |
1260-black4_2mye-m5.jpg |
816 |
1200 |
N |
83454 |
1868 |
product |
6946 |
A |
3 |
|
6946 |
0 |
1222-blue4_y9vc-5d.jpg |
1000 |
666 |
N |
83459 |
1878 |
product |
6973 |
A |
3 |
|
6973 |
0 |
1026-white4_4584-vk.jpg |
1000 |
667 |
N |
83463 |
1886 |
product |
7055 |
A |
3 |
|
7055 |
0 |
1215-red4_p2aj-hw.jpg |
700 |
1050 |
N |
83517 |
2032 |
product |
7243 |
A |
3 |
|
7243 |
0 |
1214-red4_eea8-uw.jpg |
700 |
1050 |
N |
83553 |
2042 |
product |
7316 |
A |
3 |
|
7316 |
0 |
1260-black5_jtqf-bi.jpg |
817 |
1200 |
N |
83455 |
1868 |
product |
6947 |
A |
4 |
|
6947 |
0 |
1215-red5_7vd0-mw.jpg |
700 |
1050 |
N |
83518 |
2032 |
product |
7244 |
A |
4 |
|
7244 |
0 |
1215-red6_7fpr-sz.jpg |
900 |
1200 |
N |
83519 |
2032 |
product |
7245 |
A |
5 |
|
7245 |
0 |
007-2.jpg |
800 |
800 |
N |
4855 |
2058 |
product |
6829 |
A |
10 |
|
6829 |
0 |
dress0195-2.jpg |
800 |
800 |
N |
5616 |
2393 |
product |
7587 |
A |
10 |
|
7587 |
0 |
dress0131-2.jpg |
1500 |
1500 |
N |
5621 |
2397 |
product |
7592 |
A |
10 |
|
7592 |
0 |
dress0121-2.jpg |
800 |
800 |
N |
5624 |
2398 |
product |
7595 |
A |
10 |
|
7595 |
0 |
100500-2.jpg |
833 |
1200 |
N |
5627 |
2399 |
product |
7598 |
A |
10 |
|
7598 |
0 |
007-3.jpg |
800 |
800 |
N |
4856 |
2058 |
product |
6830 |
A |
20 |
|
6830 |
0 |
dress0195-3.jpg |
900 |
1200 |
N |
5617 |
2393 |
product |
7588 |
A |
20 |
|
7588 |
0 |
dress0131-3.jpg |
1200 |
1200 |
N |
5622 |
2397 |
product |
7593 |
A |
20 |
|
7593 |
0 |
100500-3.jpg |
824 |
1200 |
N |
5628 |
2399 |
product |
7599 |
A |
20 |
|
7599 |
0 |
007-4.jpg |
800 |
800 |
N |
4857 |
2058 |
product |
6831 |
A |
30 |
|
6831 |
0 |
100500-4.jpg |
833 |
1200 |
N |
5629 |
2399 |
product |
7600 |
A |
30 |
|
7600 |
0 |
100500-4_mni3-js.jpg |
833 |
1200 |
N |
5676 |
2399 |
product |
7647 |
A |
30 |
|
7647 |
0 |
007-5.jpg |
1459 |
2189 |
N |
4858 |
2058 |
product |
6832 |
A |
40 |
|
6832 |
0 |
007-6.jpg |
1459 |
2189 |
N |
4859 |
2058 |
product |
6833 |
A |
50 |
|
6833 |