Query time 0.00126
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 ('10482','10486','10487','10490','10491','10492','10493','10501','10506','10507','10508','10509','10510','10511','10512','10513')))",
"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 |
|
|
|
|
21518 |
10510 |
product |
23480 |
A |
1 |
|
|
0 |
|
|
|
|
21761 |
10482 |
product |
23723 |
A |
1 |
|
|
0 |
|
|
|
|
21775 |
10487 |
product |
23737 |
A |
1 |
|
|
0 |
|
|
|
|
21787 |
10491 |
product |
23749 |
A |
1 |
|
|
0 |
|
|
|
|
26765 |
10492 |
product |
28727 |
A |
1 |
|
|
0 |
|
|
|
|
26834 |
10486 |
product |
28796 |
A |
1 |
|
|
0 |
|
|
|
|
21762 |
10482 |
product |
23724 |
A |
2 |
|
|
0 |
|
|
|
|
21776 |
10487 |
product |
23738 |
A |
2 |
|
|
0 |
|
|
|
|
21788 |
10491 |
product |
23750 |
A |
2 |
|
|
0 |
|
|
|
|
26766 |
10492 |
product |
28728 |
A |
2 |
|
|
0 |
|
|
|
|
26835 |
10486 |
product |
28797 |
A |
2 |
|
|
0 |
|
|
|
|
21777 |
10487 |
product |
23739 |
A |
3 |
|
|
0 |
|
|
|
|
21789 |
10491 |
product |
23751 |
A |
3 |
|
|
0 |
|
|
|
|
26786 |
10492 |
product |
28748 |
A |
3 |
|
|
0 |
|
|
|
|
21778 |
10487 |
product |
23740 |
A |
4 |
|
|
0 |
|
|
|
|
21790 |
10491 |
product |
23752 |
A |
4 |
|
|
0 |
|
|
|
|
21786 |
10490 |
product |
23748 |
A |
10 |
|
|
0 |
|
|
|
|
21791 |
10493 |
product |
23753 |
A |
10 |
|
|
0 |
|
|
|
|
21810 |
10501 |
product |
23772 |
A |
10 |
|
|
0 |
|
|
|
|
21822 |
10506 |
product |
23784 |
A |
10 |
|
|
0 |
|
|
|
|
21825 |
10508 |
product |
23787 |
A |
10 |
|
|
0 |
|
|
|
|
21827 |
10509 |
product |
23789 |
A |
10 |
|
|
0 |
|
|
|
|
21830 |
10511 |
product |
23792 |
A |
10 |
|
|
0 |
|
|
|
|
21831 |
10512 |
product |
23793 |
A |
10 |
|
|
0 |
|
|
|
|
21832 |
10513 |
product |
23794 |
A |
10 |
|
|
0 |
|
|
|
|
26831 |
10490 |
product |
28793 |
A |
11 |
|
|
0 |
|
|
|
|
26832 |
10490 |
product |
28794 |
A |
12 |
|
|
0 |
|
|
|
|
21792 |
10493 |
product |
23754 |
A |
20 |
|
|
0 |
|
|
|
|
21811 |
10501 |
product |
23773 |
A |
20 |
|
|
0 |
|
|
|
|
21823 |
10506 |
product |
23785 |
A |
20 |
|
|
0 |
|
|
|
|
21826 |
10508 |
product |
23788 |
A |
20 |
|
|
0 |
|
|
|
|
21828 |
10509 |
product |
23790 |
A |
20 |
|
|
0 |
|
|
|
|
21812 |
10501 |
product |
23774 |
A |
30 |
|
|
0 |
|
|
|
|
21824 |
10506 |
product |
23786 |
A |
30 |
|
|
0 |
|
|
|
|
21829 |
10509 |
product |
23791 |
A |
30 |
|
|