akkoma/lib/pleroma/web/mastodon_api
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
..
views Mastodon API: Preloading and normalization optimizations 2019-08-13 20:34:34 +03:00
mastodon_api.ex Feature/1072 muting notifications 2019-07-14 13:29:31 +00:00
mastodon_api_controller.ex Mastodon API: Preloading and normalization optimizations 2019-08-13 20:34:34 +03:00
search_controller.ex Extend Pleroma.Pagination to support offset-based pagination, use async/await to execute status and account search in parallel 2019-07-11 13:55:31 +00:00
subscription_controller.ex Wrap error messages into gettext helpers 2019-07-10 18:10:09 +07:00
websocket_handler.ex MastoAPI Streaming: Keep compatibility with access_token 2019-07-07 08:49:29 +02:00