Query time 0.00101
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "275.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "54.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": 54,
"rows_produced_per_join": 54,
"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 ('36026','36027','36028','36029','36030','36031','36032','36033','36034','36035','36036','36037','36038','36039','36040','36041')))",
"cost_info": {
"read_cost": "80.81",
"eval_cost": "10.80",
"prefix_cost": "91.61",
"data_read_per_join": "5K"
},
"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": 54,
"filtered": "100.00",
"cost_info": {
"read_cost": "54.00",
"eval_cost": "10.80",
"prefix_cost": "156.41",
"data_read_per_join": "41K"
},
"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": 54,
"filtered": "100.00",
"cost_info": {
"read_cost": "54.00",
"eval_cost": "10.80",
"prefix_cost": "221.21",
"data_read_per_join": "32K"
},
"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 |
71eiH89xj2L._SL1500_.jpg |
776 |
1500 |
N |
57954 |
36041 |
product |
59910 |
M |
0 |
|
59910 |
0 |
71TZ_0X6bTL._SL1500_.jpg |
509 |
1500 |
N |
57956 |
36040 |
product |
59912 |
M |
0 |
|
59912 |
0 |
61cb2xbm-GL._SL1500_.jpg |
1500 |
1000 |
N |
57961 |
36039 |
product |
59917 |
M |
0 |
|
59917 |
0 |
81G4WcEHmqL._SL1500_.jpg |
1500 |
1285 |
N |
57963 |
36038 |
product |
59919 |
M |
0 |
|
59919 |
0 |
61qbDq71mvL._SL1328_.jpg |
703 |
1328 |
N |
57964 |
36037 |
product |
59920 |
M |
0 |
|
59920 |
0 |
26156246-5956.jpg |
300 |
300 |
N |
57967 |
36036 |
product |
59923 |
M |
0 |
|
59923 |
0 |
41DdPF08NGL.jpg |
500 |
430 |
N |
57969 |
36035 |
product |
59925 |
M |
0 |
|
59925 |
0 |
41w_SwjhAFL.jpg |
500 |
500 |
N |
57970 |
36034 |
product |
59926 |
M |
0 |
|
59926 |
0 |
41o-S0RvCdL.jpg |
500 |
500 |
N |
57972 |
36033 |
product |
59928 |
M |
0 |
|
59928 |
0 |
61YnoGLVl4L._SL1500_.jpg |
748 |
1500 |
N |
57973 |
36032 |
product |
59929 |
M |
0 |
|
59929 |
0 |
71ATvmvKd1L._SL1200_.jpg |
1200 |
800 |
N |
57975 |
36031 |
product |
59931 |
M |
0 |
|
59931 |
0 |
5108H6X0zDL._SL1017_.jpg |
1017 |
1017 |
N |
57978 |
36030 |
product |
59934 |
M |
0 |
|
59934 |
0 |
51dnxjLA95L._SL1000_.jpg |
1000 |
1000 |
N |
57980 |
36029 |
product |
59936 |
M |
0 |
|
59936 |
0 |
51UMmEfQaHL._SL1000_.jpg |
1000 |
1000 |
N |
57982 |
36028 |
product |
59938 |
M |
0 |
|
59938 |
0 |
71vUqFYRnrL._SL1000_.jpg |
1000 |
1000 |
N |
57984 |
36027 |
product |
59940 |
M |
0 |
|
59940 |
0 |
71Lw5mUs5JL._SY355_.jpg |
355 |
355 |
N |
57986 |
36026 |
product |
59942 |
M |
0 |
|
59942 |