Query time 0.00231
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "185.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "32.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": 32,
"rows_produced_per_join": 32,
"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 ('32554','32555','32556','32557','32558','32559','32560','32562','32563','32564','32565','32566','32567','32568','32569','32570','32571','32573','32574','32575','32576','32577','32579','32580','32581','32582','32583','32584','32585','32586','32588','32589')))",
"cost_info": {
"read_cost": "70.41",
"eval_cost": "6.40",
"prefix_cost": "76.81",
"data_read_per_join": "3K"
},
"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": 32,
"filtered": "100.00",
"cost_info": {
"read_cost": "32.00",
"eval_cost": "6.40",
"prefix_cost": "115.21",
"data_read_per_join": "24K"
},
"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": 32,
"filtered": "100.00",
"cost_info": {
"read_cost": "32.00",
"eval_cost": "6.40",
"prefix_cost": "153.61",
"data_read_per_join": "19K"
},
"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 |
12582M-3-1.jpg |
6000 |
4000 |
N |
42746 |
32554 |
product |
44708 |
M |
0 |
|
44708 |
0 |
12583L-10-1.jpg |
4267 |
4000 |
N |
42750 |
32555 |
product |
44712 |
M |
0 |
|
44712 |
0 |
12583-L-2P-1.jpg |
6000 |
4000 |
N |
42754 |
32556 |
product |
44716 |
M |
0 |
|
44716 |
0 |
12583L-3-1.jpg |
5377 |
4000 |
N |
42758 |
32557 |
product |
44720 |
M |
0 |
|
44720 |
0 |
12583L-3P-1.jpg |
5377 |
4000 |
N |
42762 |
32558 |
product |
44724 |
M |
0 |
|
44724 |
0 |
12583L-4-1.jpg |
4129 |
4000 |
N |
42766 |
32559 |
product |
44728 |
M |
0 |
|
44728 |
0 |
12583L-5-1.jpg |
4255 |
4000 |
N |
42776 |
32560 |
product |
44738 |
M |
0 |
|
44738 |
0 |
12583L-7-1.jpg |
3867 |
4000 |
N |
42789 |
32565 |
product |
44751 |
M |
0 |
|
44751 |
0 |
12583M-2-1.jpg |
4152 |
4000 |
N |
42822 |
32573 |
product |
44784 |
M |
0 |
|
44784 |
0 |
12583M-4-3-1.jpg |
6000 |
4000 |
N |
42832 |
32575 |
product |
44794 |
M |
0 |
|
44794 |
0 |
12583M-5-1.jpg |
4185 |
4000 |
N |
42837 |
32577 |
product |
44799 |
M |
0 |
|
44799 |
0 |
12583M-8-3.jpg |
6000 |
4000 |
N |
44453 |
32581 |
product |
46415 |
M |
0 |
|
46415 |
0 |
12583L-5P-2-1.jpg |
4255 |
4000 |
N |
42780 |
32562 |
product |
44742 |
M |
10 |
|
44742 |
0 |
12583L-7P-2-1.jpg |
3867 |
4000 |
N |
42793 |
32566 |
product |
44755 |
M |
10 |
|
44755 |
0 |
12583F-8-2.jpg |
3857 |
4000 |
N |
42797 |
32567 |
product |
44759 |
M |
10 |
|
44759 |
0 |
12583L-8P-2.jpg |
3971 |
4000 |
N |
42801 |
32568 |
product |
44763 |
M |
10 |
|
44763 |
0 |
12583L-9-2.jpg |
3840 |
4000 |
N |
42805 |
32569 |
product |
44767 |
M |
10 |
|
44767 |
0 |
12583M-1-2.jpg |
4244 |
4000 |
N |
42809 |
32570 |
product |
44771 |
M |
10 |
|
44771 |
0 |
12583M-10-2.jpg |
4560 |
4000 |
N |
42812 |
32571 |
product |
44774 |
M |
10 |
|
44774 |
0 |
12583M-4P-2.jpg |
3887 |
4000 |
N |
42834 |
32576 |
product |
44796 |
M |
10 |
|
44796 |
0 |
14002L-2-2.jpg |
6000 |
3825 |
N |
42879 |
32588 |
product |
44841 |
M |
10 |
|
44841 |
0 |
14002L-3-2.jpg |
6000 |
3682 |
N |
42883 |
32589 |
product |
44845 |
M |
10 |
|
44845 |
0 |
12583M-3-2.jpg |
3962 |
4000 |
N |
44431 |
32574 |
product |
46393 |
M |
10 |
|
46393 |
0 |
12583M-6-2.jpg |
3690 |
3853 |
N |
44445 |
32579 |
product |
46407 |
M |
10 |
|
46407 |
0 |
12583M-9-2.jpg |
4649 |
4000 |
N |
44457 |
32582 |
product |
46419 |
M |
10 |
|
46419 |
0 |
14001L-1-2.jpg |
6000 |
3569 |
N |
44465 |
32583 |
product |
46427 |
M |
10 |
|
46427 |
0 |
14001L-2-2.jpg |
6000 |
3569 |
N |
44469 |
32584 |
product |
46431 |
M |
10 |
|
46431 |
0 |
14001L-3-2.jpg |
6000 |
3569 |
N |
44474 |
32585 |
product |
46436 |
M |
10 |
|
46436 |
0 |
14001L-4-2.jpg |
6000 |
3628 |
N |
44479 |
32586 |
product |
46441 |
M |
10 |
|
46441 |
0 |
12583M-7-2.jpg |
4487 |
4000 |
N |
46728 |
32580 |
product |
48690 |
M |
10 |
|
48690 |
0 |
12583L-6-3.jpg |
3690 |
3853 |
N |
42784 |
32563 |
product |
44746 |
M |
20 |
|
44746 |
0 |
12583L-6P-3.jpg |
3690 |
3853 |
N |
42787 |
32564 |
product |
44749 |
M |
20 |
|
44749 |