Query time 0.00110
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "145.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "27.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": 27,
"rows_produced_per_join": 27,
"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 ('37099','37100','37101','37102','37103','37104','37105','37106','37107','37108','37109','37110','37111','37112','37113','37114')))",
"cost_info": {
"read_cost": "48.41",
"eval_cost": "5.40",
"prefix_cost": "53.81",
"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": 27,
"filtered": "100.00",
"cost_info": {
"read_cost": "27.00",
"eval_cost": "5.40",
"prefix_cost": "86.21",
"data_read_per_join": "20K"
},
"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": 27,
"filtered": "100.00",
"cost_info": {
"read_cost": "27.00",
"eval_cost": "5.40",
"prefix_cost": "118.61",
"data_read_per_join": "16K"
},
"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 |
71AUfltM7IL._SL1500_.jpg |
1500 |
1061 |
N |
62287 |
37100 |
product |
64243 |
M |
0 |
|
64243 |
0 |
item_XL_35129512_136723652.jpg |
600 |
557 |
N |
62288 |
37101 |
product |
64244 |
M |
0 |
|
64244 |
0 |
o.51195.jpg |
800 |
700 |
N |
62289 |
37102 |
product |
64245 |
M |
0 |
|
64245 |
0 |
716HxFDGvuL._UX679_.jpg |
679 |
480 |
N |
62290 |
37103 |
product |
64246 |
M |
0 |
|
64246 |
0 |
71HL6ktV6XL._SL1500_.jpg |
1500 |
1061 |
N |
62291 |
37104 |
product |
64247 |
M |
0 |
|
64247 |
0 |
41_skX_rJJL.jpg |
500 |
299 |
N |
62292 |
37105 |
product |
64248 |
M |
0 |
|
64248 |
0 |
EUR6TPINK_FRESH6T3050-0-1_1.jpg |
900 |
1148 |
N |
62293 |
37106 |
product |
64249 |
M |
0 |
|
64249 |
0 |
617G6cwKW2L._SL1000_.jpg |
1000 |
1000 |
N |
62294 |
37107 |
product |
64250 |
M |
0 |
|
64250 |
0 |
61zLN_KSPfL._SL1500_.jpg |
1500 |
1500 |
N |
62295 |
37108 |
product |
64251 |
M |
0 |
|
64251 |
0 |
618iz9DUHzL._SL1500_.jpg |
1500 |
1500 |
N |
62296 |
37109 |
product |
64252 |
M |
0 |
|
64252 |
0 |
gqnhozmapclxs38seydr.jpg |
800 |
800 |
N |
62297 |
37099 |
product |
64253 |
M |
0 |
|
64253 |
0 |
eddef356025c6fcf921e2885b3634a42.png |
280 |
280 |
N |
62298 |
37110 |
product |
64254 |
M |
0 |
|
64254 |
0 |
item_XL_36725087_2e57641a5b0f2.jpg |
600 |
600 |
N |
62302 |
37114 |
product |
64258 |
M |
0 |
|
64258 |
0 |
ms-collection-no13-eros-edp-30-ml.jpg |
800 |
800 |
N |
62996 |
37113 |
product |
64952 |
M |
0 |
|
64952 |
0 |
2_091n-ai.jpg |
640 |
626 |
N |
82754 |
37112 |
product |
84697 |
M |
0 |
|
84697 |
0 |
2_vcca-pn.jpg |
640 |
626 |
N |
82966 |
37111 |
product |
84909 |
M |
0 |
|
84909 |