Query time 0.00139
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "116.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "21.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": 21,
"rows_produced_per_join": 21,
"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 ('9709','9710','9711','9712','9713','9714','9715','9716','9717','9718','9719','9720','9721','9722','9723','9724')))",
"cost_info": {
"read_cost": "41.21",
"eval_cost": "4.20",
"prefix_cost": "45.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.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.00",
"eval_cost": "4.20",
"prefix_cost": "70.61",
"data_read_per_join": "16K"
},
"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": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.00",
"eval_cost": "4.20",
"prefix_cost": "95.81",
"data_read_per_join": "12K"
},
"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 |
|
|
|
|
20545 |
9721 |
product |
22507 |
A |
1 |
|
|
0 |
|
|
|
|
26004 |
9724 |
product |
27966 |
A |
1 |
|
|
0 |
|
|
|
|
26006 |
9723 |
product |
27968 |
A |
1 |
|
|
0 |
|
|
|
|
26009 |
9722 |
product |
27971 |
A |
1 |
|
|
0 |
|
|
|
|
26013 |
9720 |
product |
27975 |
A |
1 |
|
|
0 |
|
|
|
|
26016 |
9719 |
product |
27978 |
A |
1 |
|
|
0 |
|
|
|
|
26018 |
9718 |
product |
27980 |
A |
1 |
|
|
0 |
|
|
|
|
26020 |
9717 |
product |
27982 |
A |
1 |
|
|
0 |
|
|
|
|
26023 |
9716 |
product |
27985 |
A |
1 |
|
|
0 |
|
|
|
|
26025 |
9715 |
product |
27987 |
A |
1 |
|
|
0 |
|
|
|
|
26028 |
9714 |
product |
27990 |
A |
1 |
|
|
0 |
|
|
|
|
26030 |
9713 |
product |
27992 |
A |
1 |
|
|
0 |
|
|
|
|
26091 |
9712 |
product |
28053 |
A |
1 |
|
|
0 |
|
|
|
|
26093 |
9711 |
product |
28055 |
A |
1 |
|
|
0 |
|
|
|
|
26095 |
9710 |
product |
28057 |
A |
1 |
|
|
0 |
|
|
|
|
26097 |
9709 |
product |
28059 |
A |
1 |
|
|
0 |
|
|
|
|
26005 |
9724 |
product |
27967 |
A |
2 |
|
|
0 |
|
|
|
|
26007 |
9723 |
product |
27969 |
A |
2 |
|
|
0 |
|
|
|
|
26010 |
9722 |
product |
27972 |
A |
2 |
|
|
0 |
|
|
|
|
26012 |
9721 |
product |
27974 |
A |
2 |
|
|
0 |
|
|
|
|
26014 |
9720 |
product |
27976 |
A |
2 |
|
|
0 |
|
|
|
|
26017 |
9719 |
product |
27979 |
A |
2 |
|
|
0 |
|
|
|
|
26019 |
9718 |
product |
27981 |
A |
2 |
|
|
0 |
|
|
|
|
26021 |
9717 |
product |
27983 |
A |
2 |
|
|
0 |
|
|
|
|
26024 |
9716 |
product |
27986 |
A |
2 |
|
|
0 |
|
|
|
|
26026 |
9715 |
product |
27988 |
A |
2 |
|
|
0 |
|
|
|
|
26029 |
9714 |
product |
27991 |
A |
2 |
|
|
0 |
|
|
|
|
26031 |
9713 |
product |
27993 |
A |
2 |
|
|
0 |
|
|
|
|
26092 |
9712 |
product |
28054 |
A |
2 |
|
|
0 |
|
|
|
|
26094 |
9711 |
product |
28056 |
A |
2 |
|
|
0 |
|
|
|
|
26096 |
9710 |
product |
28058 |
A |
2 |
|
|
0 |
|
|
|
|
26098 |
9709 |
product |
28060 |
A |
2 |
|
|
0 |
|
|
|
|
26008 |
9723 |
product |
27970 |
A |
3 |
|
|
0 |
|
|
|
|
26015 |
9720 |
product |
27977 |
A |
3 |
|
|
0 |
|
|
|
|
26022 |
9717 |
product |
27984 |
A |
3 |
|
|
0 |
|
|
|
|
26027 |
9715 |
product |
27989 |
A |
3 |
|
|
0 |
|
|
|
|
26032 |
9713 |
product |
27994 |
A |
3 |
|
|
0 |
|
|
|
|
26099 |
9709 |
product |
28061 |
A |
3 |
|
|