akkoma/lib/pleroma
rinpatch c1b6952d2a Mastodon API: Preloading and normalization optimizations
- Try to normalize the activity instead of object wherever possible
- Put the `user` key on non-home timelines as well so bookmarks and
thread mutes are preloaded there as well
- Skip trying to get the user when rendering mentions if the id ==
as:Public or user's follower collection
- Preload the object when getting replied to activities and do not crash
if it's not present

This almost solves the problem of Pleroma hammering the db with a lot
of queries when rendering timelines, the things left are
1. When rendering mentions and the user is not in cache, save it for
later and request all uncached users in one go
2. Somehow get rid of needing to get the latest follow activity to
detect the value of `requested` in a relationship. (create a database
view for user relationship and cache it maybe?)
2019-08-13 20:34:34 +03:00
..
activity constants: add as_public constant and use it everywhere 2019-07-29 02:43:19 +00:00
bbs
captcha
config
conversation
emails Merge branch 'feature/digest-email' into 'develop' 2019-08-08 14:38:33 +00:00
gopher
helpers
http Handle 303 redirects 2019-07-28 20:24:39 +00:00
instances
object Resolve merge conflicts 2019-07-20 22:04:47 +03:00
plugs tests WebFinger 2019-07-24 15:13:10 +00:00
reverse_proxy
upload
uploaders tests for Pleroma.Uploaders 2019-08-10 18:46:26 +00:00
user Merge branch 'feature/digest-email' into 'develop' 2019-08-08 14:38:33 +00:00
web Mastodon API: Preloading and normalization optimizations 2019-08-13 20:34:34 +03:00
activity.ex Mastodon API: Preloading and normalization optimizations 2019-08-13 20:34:34 +03:00
application.ex
bookmark.ex
clippy.ex
config.ex
constants.ex constants: add as_public constant and use it everywhere 2019-07-29 02:43:19 +00:00
conversation.ex
digest_email_worker.ex
emoji.ex
filter.ex
flake_id.ex test for Pleroma.Web.CommonAPI.Utils.get_by_id_or_ap_id 2019-07-31 18:35:15 +00:00
formatter.ex
html.ex
instances.ex
jwt.ex
keys.ex
list.ex
mime.ex
notification.ex
object.ex
object_tombstone.ex
pagination.ex
password_reset_token.ex
registration.ex
release_tasks.ex
repo.ex
repo_streamer.ex
scheduled_activity.ex
scheduled_activity_worker.ex
signature.ex Fix HTTP sig tweak on KeyId 2019-07-28 14:17:56 +02:00
stats.ex
thread_mute.ex
upload.ex Do not prepend /media/ when using base_url 2019-07-24 15:35:25 +00:00
user.ex Merge branch 'develop' into feature/digest-email 2019-08-02 18:16:04 +03:00
user_invite_token.ex Add tests for users tasks and PleromaAuthenticator 2019-07-22 02:43:15 +00:00