mastodon/app/workers
ThibG 89e28c7674
Fix PostgreSQL load when linking in announcements (#13250)
* Fix PostgreSQL load when linking in announcements

Fixes #13245 by caching status lookups

Since statuses are supposed to be known already and we only
need their URLs and a few other things, caching them should
be fine.

Since it's only used by announcements so far, there won't
be much statuses to cache.

* Perform status lookup when saving announcements, not when rendering them

* Change EntityCache#status to fetch URLs instead of looking into the database

* Move announcement link lookup to publishing worker

* Address issues pointed out during review
2020-04-05 12:51:22 +02:00
..
activitypub Fix background jobs not using locks like they are supposed to (#13361) 2020-03-31 21:59:03 +02:00
admin Change deletes to preserve soft-deleted statuses in unresolved reports (#11805) 2019-09-11 16:32:44 +02:00
concerns Improved remote thread fetching (#10106) 2019-02-28 15:22:21 +01:00
import Export and import show_reblogs together with following list (#10495) 2019-04-08 07:28:27 +02:00
scheduler Fix background jobs not using locks like they are supposed to (#13361) 2020-03-31 21:59:03 +02:00
web Fix web push subscriptions being deleted on rate limit or timeout (#11826) 2019-09-13 19:15:47 +02:00
after_account_domain_block_worker.rb
authorize_follow_worker.rb
backup_worker.rb Change local media attachments to perform heavy processing asynchronously (#13210) 2020-03-08 23:56:18 +01:00
block_worker.rb
bootstrap_timeline_worker.rb
digest_mailer_worker.rb
distribution_worker.rb Avoid race condition when streaming deleted statuses (#10280) 2019-03-16 20:18:47 +01:00
domain_block_worker.rb Add domain block notes (#11515) 2019-08-07 20:20:23 +02:00
feed_insert_worker.rb
fetch_reply_worker.rb Improved remote thread fetching (#10106) 2019-02-28 15:22:21 +01:00
import_worker.rb Add option to overwrite imported data (#9962) 2019-02-03 03:59:51 +01:00
link_crawl_worker.rb
local_notification_worker.rb
merge_worker.rb
move_worker.rb Fix various issues with account migration (#12301) 2019-11-07 09:05:07 +02:00
mute_worker.rb
poll_expiration_notify_worker.rb Fix background jobs not using locks like they are supposed to (#13361) 2020-03-31 21:59:03 +02:00
post_process_media_worker.rb Change local media attachments to perform heavy processing asynchronously (#13210) 2020-03-08 23:56:18 +01:00
publish_announcement_reaction_worker.rb Add streaming API updates for announcements being modified or deleted (#12963) 2020-01-26 20:07:26 +01:00
publish_scheduled_announcement_worker.rb Fix PostgreSQL load when linking in announcements (#13250) 2020-04-05 12:51:22 +02:00
publish_scheduled_status_worker.rb Fix background jobs not using locks like they are supposed to (#13361) 2020-03-31 21:59:03 +02:00
push_conversation_worker.rb
push_update_worker.rb
redownload_media_worker.rb Add retry for failed media downloads and tootctl media refresh (#11775) 2019-09-10 15:29:12 +02:00
refollow_worker.rb Fix RefollowWorker not keeping show_reblogs setting (#12707) 2020-01-02 20:52:39 +01:00
regeneration_worker.rb Fix background jobs not using locks like they are supposed to (#13361) 2020-03-31 21:59:03 +02:00
removal_worker.rb Add soft delete for statuses for instant deletes through API (#11623) 2019-08-22 21:55:56 +02:00
resolve_account_worker.rb Fix background jobs not using locks like they are supposed to (#13361) 2020-03-31 21:59:03 +02:00
thread_resolve_worker.rb Improved remote thread fetching (#10106) 2019-02-28 15:22:21 +01:00
unfavourite_worker.rb
unfollow_follow_worker.rb Fix various issues with account migration (#12301) 2019-11-07 09:05:07 +02:00
unmerge_worker.rb
unpublish_announcement_worker.rb Add streaming API updates for announcements being modified or deleted (#12963) 2020-01-26 20:07:26 +01:00
verify_account_links_worker.rb Fix background jobs not using locks like they are supposed to (#13361) 2020-03-31 21:59:03 +02:00