Commit e7e76bc
committed
Optimize follower visibility queries
Preload approved follow relationships before status and timeline queries, then
reuse those results with array-backed visibility predicates. This removes the
follower visibility subquery from status reads while avoiding unbounded bind
parameter growth for large follow sets.
Apply the same approved-follow semantics to timeline inbox construction so
pending follows cannot receive follower-only posts through inbox-backed
home or list timelines.
Fixes #173
Assisted-by: Codex:gpt-5.51 parent cc595bf commit e7e76bc
13 files changed
Lines changed: 4917 additions & 99 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| 156 | + | |
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
| |||
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
| 168 | + | |
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments