forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb60a851
committed
Update count(*) discussion ideas:
< BY col {DESC} LIMIT 1. Completing this item involves making this> BY col {DESC} LIMIT 1. Completing this item involves doing this< invalidated if anyone modifies the table.<> invalidated if anyone modifies the table. Another idea is to> get a count directly from a unique index, but for this to be> faster than a sequential scan it must avoid access to the heap> to obtain tuple visibility information.>> * Allow data to be pulled directly from indexes>> Currently indexes do not have enough tuple tuple visibility> information to allow data to be pulled from the index without> also accessing the heap. One way to allow this is to set a bit> to index tuples to indicate if a tuple is currently visible to> all transactions when the first valid heap lookup happens. This> bit would have to be cleared when a heap tuple is expired.>1 parent5df3fc6 commitb60a851
1 file changed
+16
-4
lines changedLines changed: 16 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| |||
246 | 246 |
| |
247 | 247 |
| |
248 | 248 |
| |
249 |
| - | |
| 249 | + | |
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
| |||
684 | 684 |
| |
685 | 685 |
| |
686 | 686 |
| |
687 |
| - | |
688 |
| - | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
689 | 701 |
| |
690 | 702 |
| |
691 | 703 |
| |
|
0 commit comments
Comments
(0)