Query time 0.00205
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "16.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": 16,
"rows_produced_per_join": 16,
"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 ('13193','13194','13195','13196','13197','13198','13199','13200','13201','13202','13203','13204','13205','13206','13207','13208')))",
"cost_info": {
"read_cost": "35.21",
"eval_cost": "3.20",
"prefix_cost": "38.41",
"data_read_per_join": "1K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "57.61",
"data_read_per_join": "12K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "76.81",
"data_read_per_join": "9K"
},
"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 |
6bb0e14609217bc500dfcc5821d2acbe.jpg |
700 |
600 |
N |
26995 |
13194 |
product |
28957 |
M |
0 |
|
28957 |
0 |
69a60e704456554f125687445b520540.jpg |
700 |
600 |
N |
26998 |
13197 |
product |
28960 |
M |
0 |
|
28960 |
0 |
vvv-72.jpg |
800 |
800 |
N |
26999 |
13198 |
product |
28961 |
M |
0 |
|
28961 |
0 |
ltp-1191a-4a1df-min.png |
650 |
650 |
N |
27001 |
13200 |
product |
28963 |
M |
0 |
|
28963 |
0 |
61fwMenkj7L._UX342_.jpg |
342 |
342 |
N |
27002 |
13201 |
product |
28964 |
M |
0 |
|
28964 |
0 |
N11943014A_1.jpg |
800 |
1091 |
N |
27003 |
13202 |
product |
28965 |
M |
0 |
|
28965 |
0 |
4378da0f6ff7da15aca8dffca05c2c73b1603769_989180422658c1017cf287228e4fb18b70df0dae_Casio_LTP_1191A_7A_Wrist_Watch_02.jpg |
523 |
523 |
N |
27004 |
13203 |
product |
28966 |
M |
0 |
|
28966 |
0 |
883ac54993d0d3492baae9f6e93defca.jpg |
700 |
600 |
N |
27005 |
13204 |
product |
28967 |
M |
0 |
|
28967 |
0 |
08bb288b280587da4fbb2801d161c238.jpg |
700 |
600 |
N |
27006 |
13205 |
product |
28968 |
M |
0 |
|
28968 |
0 |
51aVXzS3S7L._UL1000_.jpg |
1000 |
1000 |
N |
27889 |
13199 |
product |
29851 |
M |
0 |
|
29851 |
0 |
0000wtm1-500x500.jpg |
500 |
500 |
N |
32668 |
13208 |
product |
34630 |
M |
0 |
|
34630 |
0 |
748364051-1.jpg |
800 |
800 |
N |
32671 |
13207 |
product |
34633 |
M |
0 |
|
34633 |
0 |
Casio-classic-Watch-2017-New-Arrival-LTP-1183Q-7A-Quartz-Watch-Women-Leather-Dress-Wristwatch-Fashion.jpg_640x640.jpg |
640 |
640 |
N |
32686 |
13196 |
product |
34648 |
M |
0 |
|
34648 |
0 |
71mQW5KmbmL._UL1500_.jpg |
1125 |
1500 |
N |
32688 |
13195 |
product |
34650 |
M |
0 |
|
34650 |
0 |
Untitled-1-260.jpg |
800 |
800 |
N |
32693 |
13193 |
product |
34655 |
M |
0 |
|
34655 |
0 |
watch.jpg |
640 |
626 |
N |
37687 |
13206 |
product |
39649 |
M |
0 |
|
39649 |