]> cat aescling's git repositories - mastodon.git/commit
Fix performance of home feed regeneration (#12084)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 6 Oct 2019 20:11:17 +0000 (22:11 +0200)
committerGitHub <noreply@github.com>
Sun, 6 Oct 2019 20:11:17 +0000 (22:11 +0200)
commitf665901e3c0930fb8b3741f6bc6f6a15dd0343f6
tree1cd9cd66d5af6d23ac5ef834fd85ad9b803c1f99
parentefda126914bf409ca07a9446415b508811a58022
Fix performance of home feed regeneration (#12084)

Fetching statuses from all followed accounts at once takes too long
within Postgres. Fetching them one by one and merging in Ruby
could be a lot less resource-intensive

Because the query for dynamically fetching the home timeline is so
heavy, we can no longer offer it when the home timeline is missing
13 files changed:
app/controllers/api/v1/timelines/home_controller.rb
app/javascript/mastodon/actions/timelines.js
app/javascript/mastodon/components/missing_indicator.js
app/javascript/mastodon/components/regeneration_indicator.js [new file with mode: 0644]
app/javascript/mastodon/components/status_list.js
app/javascript/mastodon/features/generic_not_found/index.js
app/javascript/styles/mastodon/components.scss
app/javascript/styles/mastodon/introduction.scss
app/lib/feed_manager.rb
app/models/home_feed.rb
app/models/status.rb
spec/models/home_feed_spec.rb
spec/models/status_spec.rb