Query time 0.00108
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "136.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "25.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": 25,
"rows_produced_per_join": 25,
"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 ('13077','10530','10529','10524','10521','8383','8384','8385','8386','8387','8388','8389','8390','8391','8392','8393')))",
"cost_info": {
"read_cost": "46.01",
"eval_cost": "5.00",
"prefix_cost": "51.01",
"data_read_per_join": "2K"
},
"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": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "5.00",
"prefix_cost": "81.01",
"data_read_per_join": "19K"
},
"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": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "5.00",
"prefix_cost": "111.01",
"data_read_per_join": "14K"
},
"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 |
|
|
|
|
21882 |
10529 |
product |
23844 |
A |
1 |
|
|
0 |
|
|
|
|
21885 |
10530 |
product |
23847 |
A |
1 |
|
|
0 |
|
|
|
|
30711 |
13077 |
product |
32673 |
A |
1 |
|
|
0 |
|
|
|
|
85048 |
10521 |
product |
23828 |
A |
1 |
|
|
0 |
|
|
|
|
85054 |
10524 |
product |
23840 |
A |
1 |
|
|
0 |
|
|
|
|
21883 |
10529 |
product |
23845 |
A |
2 |
|
|
0 |
|
|
|
|
21886 |
10530 |
product |
23848 |
A |
2 |
|
|
0 |
|
|
|
|
85049 |
10521 |
product |
23822 |
A |
2 |
|
|
0 |
|
|
|
|
85055 |
10524 |
product |
23841 |
A |
2 |
|
|
0 |
|
|
|
|
18731 |
8386 |
product |
20693 |
A |
3 |
|
|
0 |
|
|
|
|
21887 |
10530 |
product |
23849 |
A |
3 |
|
|
0 |
|
|
|
|
85050 |
10521 |
product |
23823 |
A |
3 |
|
|
0 |
|
|
|
|
85056 |
10524 |
product |
23842 |
A |
3 |
|
|
0 |
|
|
|
|
18732 |
8386 |
product |
20694 |
A |
4 |
|
|
0 |
|
|
|
|
85051 |
10521 |
product |
23824 |
A |
4 |
|
|
0 |
|
|
|
|
85052 |
10521 |
product |
23829 |
A |
5 |
|
|
0 |
|
|
|
|
17700 |
8387 |
product |
19662 |
A |
10 |
|
|
0 |
|
|
|
|
17703 |
8388 |
product |
19665 |
A |
10 |
|
|
0 |
|
|
|
|
17706 |
8389 |
product |
19668 |
A |
10 |
|
|
0 |
|
|
|
|
17709 |
8390 |
product |
19671 |
A |
10 |
|
|
0 |
|
|
|
|
17712 |
8391 |
product |
19674 |
A |
10 |
|
|
0 |
|
|
|
|
17715 |
8392 |
product |
19677 |
A |
10 |
|
|
0 |
|
|
|
|
17718 |
8393 |
product |
19680 |
A |
10 |
|
|
0 |
|
|
|
|
17747 |
8383 |
product |
19709 |
A |
10 |
|
|
0 |
|
|
|
|
17750 |
8384 |
product |
19712 |
A |
10 |
|
|
0 |
|
|
|
|
17753 |
8385 |
product |
19715 |
A |
10 |
|
|
0 |
|
|
|
|
17701 |
8387 |
product |
19663 |
A |
20 |
|
|
0 |
|
|
|
|
17704 |
8388 |
product |
19666 |
A |
20 |
|
|
0 |
|
|
|
|
17707 |
8389 |
product |
19669 |
A |
20 |
|
|
0 |
|
|
|
|
17710 |
8390 |
product |
19672 |
A |
20 |
|
|
0 |
|
|
|
|
17713 |
8391 |
product |
19675 |
A |
20 |
|
|
0 |
|
|
|
|
17716 |
8392 |
product |
19678 |
A |
20 |
|
|
0 |
|
|
|
|
17719 |
8393 |
product |
19681 |
A |
20 |
|
|
0 |
|
|
|
|
17748 |
8383 |
product |
19710 |
A |
20 |
|
|
0 |
|
|
|
|
17751 |
8384 |
product |
19713 |
A |
20 |
|
|
0 |
|
|
|
|
17754 |
8385 |
product |
19716 |
A |
20 |
|
|