You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/services
Akihiko Odaki 41eeb9ebaa
Use Status.group instead of Status.distinct in HashQueryService (#14662)
DISTINCT clause removes duplicated records according to all the selected
attributes. In reality, it can remove duplicated records only looking at
statuses.id, but the clause confuses the query planner and yields
insufficient performance.
The behavior is also problematic if the scope produced by HashQueryService
is used to query columns without id (using pluck method, for example). The
scope is expected to contain unique statuses, but the uniquness will be
evaluated with some arbitrary columns other than id.

GROUP BY clause resolves those problem by explicitly specifying the
column to take into account for the record distinction.

A workaround for the problem of DISTINCT clause in
Api::V1::Timelines::TagController is no longer necessary and removed.
4 years ago
..
activitypub Add customizable thumbnails for audio and video attachments (#14145) 5 years ago
concerns
keys
account_search_service.rb Fix following restriction not working when exact match in account search (#14394) 5 years ago
after_block_domain_from_account_service.rb Fix account domain block not properly unfollowing accounts from domain (#14304) 5 years ago
after_block_service.rb
after_unallow_domain_service.rb Fix removing allowed domains being done synchronously (#14302) 5 years ago
app_sign_up_service.rb
authorize_follow_service.rb
backup_service.rb
base_service.rb
batched_remove_status_service.rb
block_domain_service.rb Make domain block/silence/reject-media code more robust (#13424) 5 years ago
block_service.rb
bootstrap_timeline_service.rb
clear_domain_media_service.rb Make domain block/silence/reject-media code more robust (#13424) 5 years ago
deliver_to_device_service.rb
fan_out_on_write_service.rb
favourite_service.rb
fetch_link_card_service.rb Change User-Agent of link preview fetching service to include "Bot" (#14248) 5 years ago
fetch_oembed_service.rb
fetch_remote_status_service.rb
fetch_resource_service.rb
follow_service.rb
hashtag_query_service.rb Use Status.group instead of Status.distinct in HashQueryService (#14662) 4 years ago
import_service.rb Fix performance of follow import (#13836) 5 years ago
move_service.rb
mute_service.rb
notify_service.rb
post_status_service.rb
precompute_feed_service.rb
process_hashtags_service.rb
process_mentions_service.rb Fix duplicate notification and delivery of mentions (#14378) 5 years ago
reblog_service.rb
reject_follow_service.rb
remove_status_service.rb
report_service.rb
resolve_account_service.rb Fix performance of follow import (#13836) 5 years ago
resolve_url_service.rb
search_service.rb
suspend_account_service.rb
tag_search_service.rb
unallow_domain_service.rb Fix removing allowed domains being done synchronously (#14302) 5 years ago
unblock_domain_service.rb
unblock_service.rb
unfavourite_service.rb
unfollow_service.rb
unmute_service.rb
update_account_service.rb Fix movie width and frame_rate returning nil (#14357) 5 years ago
verify_link_service.rb
vote_service.rb