Query time 0.00106
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "140.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "26.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": 26,
"rows_produced_per_join": 26,
"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 ('36714','36715','36716','36717','36718','36720','36721','36726','36727','36728','36729','36730','36731','36732','36733','36734')))",
"cost_info": {
"read_cost": "47.21",
"eval_cost": "5.20",
"prefix_cost": "52.41",
"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": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.00",
"eval_cost": "5.20",
"prefix_cost": "83.61",
"data_read_per_join": "19K"
},
"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": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.00",
"eval_cost": "5.20",
"prefix_cost": "114.81",
"data_read_per_join": "15K"
},
"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 |
91J-SQYvbJL._SL1500_.jpg |
1500 |
1500 |
N |
58915 |
36734 |
product |
60871 |
M |
0 |
|
60871 |
0 |
91v6u1bdHAL._SL1500_.jpg |
1500 |
1500 |
N |
58918 |
36733 |
product |
60874 |
M |
0 |
|
60874 |
0 |
51msdbnb2TL._SL1000_.jpg |
1000 |
1000 |
N |
58920 |
36731 |
product |
60876 |
M |
0 |
|
60876 |
0 |
51bAPOv_JjL._SL1000_.jpg |
1000 |
1000 |
N |
58921 |
36730 |
product |
60877 |
M |
0 |
|
60877 |
0 |
41FxWkelX4L.jpg |
500 |
500 |
N |
58923 |
36729 |
product |
60879 |
M |
0 |
|
60879 |
0 |
71lAy2lDNvL._SL1500_.jpg |
1500 |
1500 |
N |
58925 |
36728 |
product |
60881 |
M |
0 |
|
60881 |
0 |
61ZMu-Bxv0L._SL1000_.jpg |
1000 |
1000 |
N |
58926 |
36727 |
product |
60882 |
M |
0 |
|
60882 |
0 |
51fJWYhqbyL._SL1000_.jpg |
1000 |
1000 |
N |
58928 |
36726 |
product |
60884 |
M |
0 |
|
60884 |
0 |
s-l500.png |
500 |
500 |
N |
58934 |
36721 |
product |
60890 |
M |
0 |
|
60890 |
0 |
s-l500_tcj9-08.jpg |
500 |
500 |
N |
58935 |
36720 |
product |
60891 |
M |
0 |
|
60891 |
0 |
51KMWai2PeL._SL1000_.jpg |
1000 |
1000 |
N |
58939 |
36718 |
product |
60895 |
M |
0 |
|
60895 |
0 |
51-aT1Pr5oL._SL1000_.jpg |
1000 |
1000 |
N |
58942 |
36717 |
product |
60898 |
M |
0 |
|
60898 |
0 |
51eTAZqx7_L._SL1000_.jpg |
1000 |
1000 |
N |
58944 |
36716 |
product |
60900 |
M |
0 |
|
60900 |
0 |
81Mo3QboKtL._SL1500_.jpg |
983 |
1500 |
N |
58945 |
36715 |
product |
60901 |
M |
0 |
|
60901 |
0 |
41jzqCc88zL.jpg |
500 |
500 |
N |
58946 |
36714 |
product |
60902 |
M |
0 |
|
60902 |
0 |
4_nutg-vp.jpg |
640 |
626 |
N |
65067 |
36732 |
product |
67018 |
M |
0 |
|
67018 |