Query time 0.00110
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "112.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "20.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": 20,
"rows_produced_per_join": 20,
"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 ('14867','14868','14869','14870','14871','14872','14873','14874','14875','14876','14877','14878','14879','14880','14881','14882')))",
"cost_info": {
"read_cost": "40.01",
"eval_cost": "4.00",
"prefix_cost": "44.01",
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "68.01",
"data_read_per_join": "15K"
},
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "92.01",
"data_read_per_join": "11K"
},
"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 |
OL322.jpg |
600 |
450 |
N |
28775 |
14867 |
product |
30737 |
M |
0 |
|
30737 |
0 |
31Jbim5DT3L.jpg |
500 |
500 |
N |
28776 |
14868 |
product |
30738 |
M |
0 |
|
30738 |
0 |
51Pyywp3CLL.jpg |
500 |
500 |
N |
28777 |
14869 |
product |
30739 |
M |
0 |
|
30739 |
0 |
41VrxqsCRvL.jpg |
500 |
500 |
N |
28778 |
14870 |
product |
30740 |
M |
0 |
|
30740 |
0 |
513yDg2J7FL.jpg |
500 |
500 |
N |
28779 |
14871 |
product |
30741 |
M |
0 |
|
30741 |
0 |
419j2XFXhTL.jpg |
500 |
403 |
N |
28780 |
14872 |
product |
30742 |
M |
0 |
|
30742 |
0 |
61RQvKiseEL.jpg |
500 |
500 |
N |
28781 |
14873 |
product |
30743 |
M |
0 |
|
30743 |
0 |
51Q4PdxUa6L.jpg |
500 |
500 |
N |
28782 |
14874 |
product |
30744 |
M |
0 |
|
30744 |
0 |
31KKT8Q3kzL.jpg |
500 |
500 |
N |
28783 |
14875 |
product |
30745 |
M |
0 |
|
30745 |
0 |
31uo0y9Z9qL.jpg |
500 |
500 |
N |
28784 |
14876 |
product |
30746 |
M |
0 |
|
30746 |
0 |
21jpcRTUSvL.jpg |
500 |
494 |
N |
28785 |
14877 |
product |
30747 |
M |
0 |
|
30747 |
0 |
4159LaAKaiL.jpg |
500 |
500 |
N |
28786 |
14878 |
product |
30748 |
M |
0 |
|
30748 |
0 |
514W418TTqL.jpg |
500 |
500 |
N |
28787 |
14879 |
product |
30749 |
M |
0 |
|
30749 |
0 |
41ePEWurqxL.jpg |
500 |
500 |
N |
28788 |
14880 |
product |
30750 |
M |
0 |
|
30750 |
0 |
41BB2fWEIJL.jpg |
500 |
500 |
N |
28789 |
14881 |
product |
30751 |
M |
0 |
|
30751 |
0 |
41mU3yLaIkL.jpg |
462 |
500 |
N |
28790 |
14882 |
product |
30752 |
M |
0 |
|
30752 |