Query time 0.00139
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "16.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": 16,
"rows_produced_per_join": 16,
"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 ('2687','2688','2689','2607','2608','2609','2610','2611','2612','2613','2614','2615','2616','2617','2618','2619')))",
"cost_info": {
"read_cost": "35.21",
"eval_cost": "3.20",
"prefix_cost": "38.41",
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "57.61",
"data_read_per_join": "12K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "76.81",
"data_read_per_join": "9K"
},
"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 |
s-l1000_ozym-de.jpg |
500 |
500 |
N |
5923 |
2607 |
product |
7894 |
M |
0 |
|
7894 |
0 |
PACO0068451501.jpg |
491 |
500 |
N |
5924 |
2608 |
product |
7895 |
M |
0 |
|
7895 |
0 |
3349668547791_1.jpg |
700 |
700 |
N |
5925 |
2609 |
product |
7896 |
M |
0 |
|
7896 |
0 |
s-l1000_7s74-8s.jpg |
800 |
800 |
N |
5926 |
2610 |
product |
7897 |
M |
0 |
|
7897 |
0 |
3349668547678.jpg |
516 |
640 |
N |
5927 |
2611 |
product |
7898 |
M |
0 |
|
7898 |
0 |
s-l1000_nz7b-l2.jpg |
600 |
600 |
N |
5928 |
2612 |
product |
7899 |
M |
0 |
|
7899 |
0 |
369087.jpg |
449 |
449 |
N |
5930 |
2613 |
product |
7901 |
M |
0 |
|
7901 |
0 |
item_XL_7547230_142370187.jpg |
600 |
403 |
N |
5932 |
2614 |
product |
7903 |
M |
0 |
|
7903 |
0 |
s-l1000_sp6u-q9.jpg |
500 |
500 |
N |
5934 |
2615 |
product |
7905 |
M |
0 |
|
7905 |
0 |
womens-fragrances-black-xs-los-angeles-2-7-oz-edt-for-women-1.jpg |
800 |
800 |
N |
5936 |
2616 |
product |
7907 |
M |
0 |
|
7907 |
0 |
Paco-Rabanne-Black-XS-Potion-Limited-Edition-100ml-EDT-for-Women-3349668524624-1.jpg |
500 |
500 |
N |
5938 |
2617 |
product |
7909 |
M |
0 |
|
7909 |
0 |
PACO802164.jpg |
500 |
500 |
N |
5940 |
2618 |
product |
7911 |
M |
0 |
|
7911 |
0 |
PACO65131911.jpg |
500 |
500 |
N |
5942 |
2619 |
product |
7913 |
M |
0 |
|
7913 |
0 |
memo_russian_leather_edp_75ml-560x350.jpg |
560 |
350 |
N |
6026 |
2687 |
product |
7997 |
M |
0 |
|
7997 |
0 |
mem004_memoparis_shams-oud_1560x1960-wrkn7.jpg |
680 |
854 |
N |
6027 |
2688 |
product |
7998 |
M |
0 |
|
7998 |
0 |
xxxxxx_memoparis_tigersnest_1_1560x1960-zh1q2.jpg |
680 |
854 |
N |
6028 |
2689 |
product |
7999 |
M |
0 |
|
7999 |