Query time 0.00118
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "179.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "34.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": 34,
"rows_produced_per_join": 34,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'A') and (`portal`.`q_images_links`.`object_id` in ('9725','9726','9727','9728','9729','9730','9731','9732','9733','9734','9735','9736','9737','9738','9739','9740')))",
"cost_info": {
"read_cost": "56.81",
"eval_cost": "6.80",
"prefix_cost": "63.61",
"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.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 34,
"filtered": "100.00",
"cost_info": {
"read_cost": "34.00",
"eval_cost": "6.80",
"prefix_cost": "104.41",
"data_read_per_join": "26K"
},
"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": 34,
"filtered": "100.00",
"cost_info": {
"read_cost": "34.00",
"eval_cost": "6.80",
"prefix_cost": "145.21",
"data_read_per_join": "20K"
},
"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 |
|
|
|
|
25961 |
9740 |
product |
27923 |
A |
1 |
|
|
0 |
|
|
|
|
25965 |
9739 |
product |
27927 |
A |
1 |
|
|
0 |
|
|
|
|
25968 |
9737 |
product |
27930 |
A |
1 |
|
|
0 |
|
|
|
|
25971 |
9736 |
product |
27933 |
A |
1 |
|
|
0 |
|
|
|
|
25974 |
9735 |
product |
27936 |
A |
1 |
|
|
0 |
|
|
|
|
25976 |
9734 |
product |
27938 |
A |
1 |
|
|
0 |
|
|
|
|
25980 |
9733 |
product |
27942 |
A |
1 |
|
|
0 |
|
|
|
|
25986 |
9732 |
product |
27948 |
A |
1 |
|
|
0 |
|
|
|
|
25989 |
9731 |
product |
27951 |
A |
1 |
|
|
0 |
|
|
|
|
25992 |
9730 |
product |
27954 |
A |
1 |
|
|
0 |
|
|
|
|
25995 |
9729 |
product |
27957 |
A |
1 |
|
|
0 |
|
|
|
|
25996 |
9727 |
product |
27958 |
A |
1 |
|
|
0 |
|
|
|
|
25999 |
9726 |
product |
27961 |
A |
1 |
|
|
0 |
|
|
|
|
26002 |
9725 |
product |
27964 |
A |
1 |
|
|
0 |
|
|
|
|
25962 |
9740 |
product |
27924 |
A |
2 |
|
|
0 |
|
|
|
|
25966 |
9739 |
product |
27928 |
A |
2 |
|
|
0 |
|
|
|
|
25967 |
9738 |
product |
27929 |
A |
2 |
|
|
0 |
|
|
|
|
25969 |
9737 |
product |
27931 |
A |
2 |
|
|
0 |
|
|
|
|
25972 |
9736 |
product |
27934 |
A |
2 |
|
|
0 |
|
|
|
|
25975 |
9735 |
product |
27937 |
A |
2 |
|
|
0 |
|
|
|
|
25981 |
9733 |
product |
27943 |
A |
2 |
|
|
0 |
|
|
|
|
25987 |
9732 |
product |
27949 |
A |
2 |
|
|
0 |
|
|
|
|
25990 |
9731 |
product |
27952 |
A |
2 |
|
|
0 |
|
|
|
|
25993 |
9730 |
product |
27955 |
A |
2 |
|
|
0 |
|
|
|
|
25997 |
9727 |
product |
27959 |
A |
2 |
|
|
0 |
|
|
|
|
26000 |
9726 |
product |
27962 |
A |
2 |
|
|
0 |
|
|
|
|
26003 |
9725 |
product |
27965 |
A |
2 |
|
|
0 |
|
|
|
|
25963 |
9740 |
product |
27925 |
A |
3 |
|
|
0 |
|
|
|
|
25970 |
9737 |
product |
27932 |
A |
3 |
|
|
0 |
|
|
|
|
25973 |
9736 |
product |
27935 |
A |
3 |
|
|
0 |
|
|
|
|
25978 |
9734 |
product |
27940 |
A |
3 |
|
|
0 |
|
|
|
|
25982 |
9733 |
product |
27944 |
A |
3 |
|
|
0 |
|
|
|
|
25988 |
9732 |
product |
27950 |
A |
3 |
|
|
0 |
|
|
|
|
25991 |
9731 |
product |
27953 |
A |
3 |
|
|
0 |
|
|
|
|
25994 |
9730 |
product |
27956 |
A |
3 |
|
|
0 |
|
|
|
|
25998 |
9727 |
product |
27960 |
A |
3 |
|
|
0 |
|
|
|
|
26001 |
9726 |
product |
27963 |
A |
3 |
|
|
0 |
|
|
|
|
25964 |
9740 |
product |
27926 |
A |
4 |
|
|
0 |
|
|
|
|
25979 |
9734 |
product |
27941 |
A |
4 |
|
|