Commit 1172905
committed
Replace TODO with rationale: full scan is optimal without reacted_at index
Benchmarked incremental approaches (CTE recent pairs: 13.7s, IN active users: 8.8s)
against the current full scan (6.0s). All slower because no index on reacted_at,
and adding one isn't worth the storage cost (indexes already 1.9GB > table 1.8GB).1 parent e0b3ad0 commit 1172905
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments