Query time 0.00110
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "174.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "33.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": 33,
"rows_produced_per_join": 33,
"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 ('36002','36003','36004','36005','36006','36007','36008','36009','36015','36019','36020','36021','36022','36023','36024','36025')))",
"cost_info": {
"read_cost": "55.61",
"eval_cost": "6.60",
"prefix_cost": "62.21",
"data_read_per_join": "3K"
},
"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": 33,
"filtered": "100.00",
"cost_info": {
"read_cost": "33.00",
"eval_cost": "6.60",
"prefix_cost": "101.81",
"data_read_per_join": "25K"
},
"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": 33,
"filtered": "100.00",
"cost_info": {
"read_cost": "33.00",
"eval_cost": "6.60",
"prefix_cost": "141.41",
"data_read_per_join": "19K"
},
"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 |
71QidqHa4cL._SL1500_.jpg |
1500 |
1500 |
N |
57988 |
36025 |
product |
59944 |
M |
0 |
|
59944 |
0 |
51aEDxKNiuL._SL1000_.jpg |
1000 |
1000 |
N |
57990 |
36024 |
product |
59946 |
M |
0 |
|
59946 |
0 |
81ZczxP9jaL._SL1500_.jpg |
1500 |
1500 |
N |
57991 |
36023 |
product |
59947 |
M |
0 |
|
59947 |
0 |
61hmAHevQ7L._SL1000_.jpg |
1000 |
1000 |
N |
57992 |
36022 |
product |
59948 |
M |
0 |
|
59948 |
0 |
51lThVDEzEL._SL1000_.jpg |
1000 |
1000 |
N |
57994 |
36021 |
product |
59950 |
M |
0 |
|
59950 |
0 |
51W8cO_0PpL._SL1000_.jpg |
1000 |
1000 |
N |
57995 |
36020 |
product |
59951 |
M |
0 |
|
59951 |
0 |
41jMBMmE5NL.jpg |
500 |
500 |
N |
57996 |
36019 |
product |
59952 |
M |
0 |
|
59952 |
0 |
61HsI_hHDcL._SL1002_.jpg |
617 |
1002 |
N |
58000 |
36015 |
product |
59956 |
M |
0 |
|
59956 |
0 |
ile_au_th_esa.png |
720 |
720 |
N |
58120 |
36006 |
product |
60076 |
M |
0 |
|
60076 |
0 |
annick-goutal-nuit-et-confidences.jpg |
640 |
856 |
N |
58121 |
36007 |
product |
60077 |
M |
0 |
|
60077 |
0 |
songes_esa_1.png |
720 |
720 |
N |
58127 |
36009 |
product |
60083 |
M |
0 |
|
60083 |
0 |
edh_esa.png |
450 |
450 |
N |
59785 |
36005 |
product |
61741 |
M |
0 |
|
61741 |
0 |
61XWM--udhL._SL1000_.jpg |
1000 |
1000 |
N |
59786 |
36004 |
product |
61742 |
M |
0 |
|
61742 |
0 |
81k6vsuiX2L._SL1500_.jpg |
1500 |
1500 |
N |
59787 |
36003 |
product |
61743 |
M |
0 |
|
61743 |
0 |
375x500.1189.jpg |
375 |
500 |
N |
59788 |
36002 |
product |
61744 |
M |
0 |
|
61744 |
0 |
tmp_baYaHM_c2c66d519a202830_jfkdl_afjkdla_jfas_.jpg |
1440 |
1440 |
N |
59179 |
36008 |
product |
61135 |
M |
2 |
|
61135 |