Query time 0.00282
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "249.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "43.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": 43,
"rows_produced_per_join": 43,
"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 ('2988','6094','6095','6096','2992','6098','6099','6100','6101','2997','6103','6104','6105','6106','3002','6108','6109','6110','6111','3007','6089','6090','6091','6092','3012','5926','5927','5928','5929','2802','2894','2895','2896','2897','2808','3372','3373','3374','3375','2388','2505','2391','2507')))",
"cost_info": {
"read_cost": "94.61",
"eval_cost": "8.60",
"prefix_cost": "103.21",
"data_read_per_join": "4K"
},
"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": 43,
"filtered": "100.00",
"cost_info": {
"read_cost": "43.00",
"eval_cost": "8.60",
"prefix_cost": "154.81",
"data_read_per_join": "32K"
},
"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": 43,
"filtered": "100.00",
"cost_info": {
"read_cost": "43.00",
"eval_cost": "8.60",
"prefix_cost": "206.41",
"data_read_per_join": "25K"
},
"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 |
dress0241-1_mvwi-j1.jpg |
1200 |
1200 |
N |
5600 |
2388 |
product |
7571 |
M |
0 |
|
7571 |
0 |
dress0111-1.jpg |
600 |
600 |
N |
5609 |
2391 |
product |
7580 |
M |
0 |
|
7580 |
0 |
6049-1.jpg |
1500 |
2250 |
N |
6201 |
2802 |
product |
8169 |
M |
0 |
|
8169 |
0 |
6603-1.JPG |
800 |
1200 |
N |
8061 |
2992 |
product |
10026 |
M |
0 |
|
10026 |
0 |
6103-1.JPG |
800 |
1200 |
N |
8201 |
3012 |
product |
10166 |
M |
0 |
|
10166 |
0 |
6077-brown-1.png |
900 |
1200 |
N |
8232 |
2808 |
product |
10197 |
M |
0 |
|
10197 |
0 |
dress0241-1_mvwi-j1.jpg |
1200 |
1200 |
N |
83560 |
2505 |
product |
7571 |
M |
0 |
|
7571 |
0 |
dress0111-1.jpg |
600 |
600 |
N |
83566 |
2507 |
product |
7580 |
M |
0 |
|
7580 |
0 |
6049-1.jpg |
1500 |
2250 |
N |
83626 |
2894 |
product |
8169 |
M |
0 |
|
8169 |
0 |
6049-1.jpg |
1500 |
2250 |
N |
83627 |
2895 |
product |
8169 |
M |
0 |
|
8169 |
0 |
6049-1.jpg |
1500 |
2250 |
N |
83628 |
2896 |
product |
8169 |
M |
0 |
|
8169 |
0 |
6049-1.jpg |
1500 |
2250 |
N |
83629 |
2897 |
product |
8169 |
M |
0 |
|
8169 |
0 |
6077-brown-1.png |
900 |
1200 |
N |
83848 |
3372 |
product |
10197 |
M |
0 |
|
10197 |
0 |
6077-brown-1.png |
900 |
1200 |
N |
83849 |
3373 |
product |
10197 |
M |
0 |
|
10197 |
0 |
6077-brown-1.png |
900 |
1200 |
N |
83850 |
3374 |
product |
10197 |
M |
0 |
|
10197 |
0 |
6077-brown-1.png |
900 |
1200 |
N |
83851 |
3375 |
product |
10197 |
M |
0 |
|
10197 |
0 |
6103-1.JPG |
800 |
1200 |
N |
83952 |
5926 |
product |
10166 |
M |
0 |
|
10166 |
0 |
6103-1.JPG |
800 |
1200 |
N |
83953 |
5927 |
product |
10166 |
M |
0 |
|
10166 |
0 |
6103-1.JPG |
800 |
1200 |
N |
83954 |
5928 |
product |
10166 |
M |
0 |
|
10166 |
0 |
6103-1.JPG |
800 |
1200 |
N |
83955 |
5929 |
product |
10166 |
M |
0 |
|
10166 |
0 |
6603-1.JPG |
800 |
1200 |
N |
84147 |
6098 |
product |
10026 |
M |
0 |
|
10026 |
0 |
6603-1.JPG |
800 |
1200 |
N |
84148 |
6099 |
product |
10026 |
M |
0 |
|
10026 |
0 |
6603-1.JPG |
800 |
1200 |
N |
84149 |
6100 |
product |
10026 |
M |
0 |
|
10026 |
0 |
6603-1.JPG |
800 |
1200 |
N |
84150 |
6101 |
product |
10026 |
M |
0 |
|
10026 |
0 |
6124-1.JPG |
800 |
1200 |
N |
8171 |
3007 |
product |
10136 |
M |
51 |
|
10136 |
0 |
6124-1.JPG |
800 |
1200 |
N |
84107 |
6089 |
product |
10136 |
M |
51 |
|
10136 |
0 |
6124-1.JPG |
800 |
1200 |
N |
84108 |
6090 |
product |
10136 |
M |
51 |
|
10136 |
0 |
6124-1.JPG |
800 |
1200 |
N |
84109 |
6091 |
product |
10136 |
M |
51 |
|
10136 |
0 |
6124-1.JPG |
800 |
1200 |
N |
84110 |
6092 |
product |
10136 |
M |
51 |
|
10136 |
0 |
6174-1.JPG |
800 |
1200 |
N |
8101 |
2997 |
product |
10066 |
M |
61 |
|
10066 |
0 |
6137-1.JPG |
800 |
1200 |
N |
8136 |
3002 |
product |
10101 |
M |
61 |
|
10101 |
0 |
6174-1.JPG |
800 |
1200 |
N |
84182 |
6103 |
product |
10066 |
M |
61 |
|
10066 |
0 |
6174-1.JPG |
800 |
1200 |
N |
84183 |
6104 |
product |
10066 |
M |
61 |
|
10066 |
0 |
6174-1.JPG |
800 |
1200 |
N |
84184 |
6105 |
product |
10066 |
M |
61 |
|
10066 |
0 |
6174-1.JPG |
800 |
1200 |
N |
84185 |
6106 |
product |
10066 |
M |
61 |
|
10066 |
0 |
6137-1.JPG |
800 |
1200 |
N |
84217 |
6108 |
product |
10101 |
M |
61 |
|
10101 |
0 |
6137-1.JPG |
800 |
1200 |
N |
84218 |
6109 |
product |
10101 |
M |
61 |
|
10101 |
0 |
6137-1.JPG |
800 |
1200 |
N |
84219 |
6110 |
product |
10101 |
M |
61 |
|
10101 |
0 |
6137-1.JPG |
800 |
1200 |
N |
84220 |
6111 |
product |
10101 |
M |
61 |
|
10101 |