Skip to content

Commit f4992a2

Browse files
authored
Merge pull request #448 from dahlia/issue-173
Optimize follower visibility queries
2 parents cc595bf + e7e76bc commit f4992a2

13 files changed

Lines changed: 4917 additions & 99 deletions

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ To be released.
108108
`410 Gone`, preventing repeated delivery retries for actors that have
109109
already been permanently deleted.
110110

111+
- Optimized follower-only status visibility checks by preloading approved
112+
follow relationships and reusing simple `WHERE IN` conditions for status,
113+
conversation context, quote, and timeline queries. [[#173], [#448]]
114+
111115
- Added `FEDIFY_DEBUG` environment variable to enable the [Fedify debugger],
112116
an embedded real-time dashboard for inspecting ActivityPub traces and
113117
activities. When enabled, the debug dashboard is accessible at
@@ -149,6 +153,7 @@ To be released.
149153

150154
- Upgraded Fedify to 2.1.7.
151155

156+
[#173]: https://github.com/fedify-dev/hollo/issues/173
152157
[#348]: https://github.com/fedify-dev/hollo/issues/348
153158
[#350]: https://github.com/fedify-dev/hollo/issues/350
154159
[#357]: https://github.com/fedify-dev/hollo/issues/357
@@ -160,6 +165,7 @@ To be released.
160165
[#436]: https://github.com/fedify-dev/hollo/pull/436
161166
[#445]: https://github.com/fedify-dev/hollo/issues/445
162167
[#447]: https://github.com/fedify-dev/hollo/pull/447
168+
[#448]: https://github.com/fedify-dev/hollo/pull/448
163169
[Fedify debugger]: https://fedify.dev/manual/debug
164170

165171

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CREATE INDEX "follows_follower_id_following_id_approved_index" ON "follows" USING btree ("follower_id","following_id") WHERE "follows"."approved" is not null;

0 commit comments

Comments
 (0)