]> cat aescling's git repositories - mastodon.git/commit
Improve PostStatusService performance (#7317)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 2 May 2018 20:10:57 +0000 (22:10 +0200)
committerGitHub <noreply@github.com>
Wed, 2 May 2018 20:10:57 +0000 (22:10 +0200)
commit658cbc94255a91453fbadd175cd45ad15efcbdf3
treef70a7ef825bec3ff1bc3c066891e7f6df6c61370
parentcb5b5cb5f79bb2187d8124df91af4c8e1bfd7256
Improve PostStatusService performance (#7317)

Offload creation of local notifications to a worker. Remove two
redundant SQL queries from ProcessMentionsService, remove n+1
XML/JSON serialization via memoization
app/services/process_mentions_service.rb
app/workers/local_notification_worker.rb [new file with mode: 0644]