forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit61cf535
committed
Re-add item with better description:
> * Allow ORDER BY ... LIMIT 1 to select high/low value without sort or> index using a sequential scan for highest/lowest values>> Right now, if no index exists, ORDER BY ... LIMIT 1 requires we sort> all values to return the high/low value. Instead The idea is to do a> sequential scan to find the high/low value, thus avoiding the sort.>1 parentc5b08d3 commit61cf535
2 files changed
+15
-2
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| |||
862 | 862 |
| |
863 | 863 |
| |
864 | 864 |
| |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
865 | 872 |
| |
866 | 873 |
| |
867 | 874 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
787 | 787 |
| |
788 | 788 |
| |
789 | 789 |
| |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
790 | 796 |
| |
791 | 797 |
| |
792 | 798 |
| |
|
0 commit comments
Comments
(0)