Query time 0.00081
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "241.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "47.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": 47,
"rows_produced_per_join": 47,
"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 ('37881','37882','37883','37884','37885','37887','37888','37889','37890','37893','37895','37896','38150','38151','38152','38155')))",
"cost_info": {
"read_cost": "72.41",
"eval_cost": "9.40",
"prefix_cost": "81.81",
"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.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 47,
"filtered": "100.00",
"cost_info": {
"read_cost": "47.00",
"eval_cost": "9.40",
"prefix_cost": "138.21",
"data_read_per_join": "35K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
]
}
},
{
"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": 47,
"filtered": "100.00",
"cost_info": {
"read_cost": "47.00",
"eval_cost": "9.40",
"prefix_cost": "194.61",
"data_read_per_join": "27K"
},
"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 |
|
|
|
|
63971 |
37881 |
product |
65927 |
M |
0 |
|
|
0 |
|
|
|
|
63972 |
37882 |
product |
65928 |
M |
0 |
|
|
0 |
|
|
|
|
63973 |
37883 |
product |
65929 |
M |
0 |
|
|
0 |
|
|
|
|
63974 |
37885 |
product |
65930 |
M |
0 |
|
|
0 |
|
|
|
|
63976 |
37887 |
product |
65932 |
M |
0 |
|
|
0 |
|
|
|
|
63977 |
37888 |
product |
65933 |
M |
0 |
|
|
0 |
|
|
|
|
63978 |
37889 |
product |
65934 |
M |
0 |
|
|
0 |
|
|
|
|
63979 |
37884 |
product |
65935 |
M |
0 |
|
|
0 |
|
|
|
|
63980 |
37890 |
product |
65936 |
M |
0 |
|
|
0 |
|
|
|
|
63983 |
37893 |
product |
65939 |
M |
0 |
|
|
0 |
|
|
|
|
63995 |
37895 |
product |
65951 |
M |
0 |
|
|
0 |
|
|
|
|
65805 |
38152 |
product |
67756 |
M |
0 |
|
|
0 |
|
|
|
|
65810 |
38155 |
product |
67761 |
M |
0 |
|
|
0 |
|
|
|
|
65660 |
38150 |
product |
67611 |
M |
1 |
|
|
0 |
|
|
|
|
65802 |
38151 |
product |
67753 |
M |
2 |
|
|
0 |
|
|
|
|
67567 |
37896 |
product |
69518 |
M |
2 |
|
|