mirror of https://github.com/mastodon/mastodon
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.
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. |
5 years ago | |
---|---|---|
.. | ||
activitypub | 5 years ago | |
concerns | 5 years ago | |
keys | 5 years ago | |
account_search_service.rb | 5 years ago | |
after_block_domain_from_account_service.rb | 5 years ago | |
after_block_service.rb | 6 years ago | |
after_unallow_domain_service.rb | 5 years ago | |
app_sign_up_service.rb | 6 years ago | |
authorize_follow_service.rb | 6 years ago | |
backup_service.rb | 5 years ago | |
base_service.rb | 8 years ago | |
batched_remove_status_service.rb | 5 years ago | |
block_domain_service.rb | 5 years ago | |
block_service.rb | 6 years ago | |
bootstrap_timeline_service.rb | 5 years ago | |
clear_domain_media_service.rb | 5 years ago | |
deliver_to_device_service.rb | 5 years ago | |
fan_out_on_write_service.rb | 5 years ago | |
favourite_service.rb | 6 years ago | |
fetch_link_card_service.rb | 5 years ago | |
fetch_oembed_service.rb | 5 years ago | |
fetch_remote_status_service.rb | 5 years ago | |
fetch_resource_service.rb | 5 years ago | |
follow_service.rb | 5 years ago | |
hashtag_query_service.rb | 5 years ago | |
import_service.rb | 5 years ago | |
move_service.rb | 6 years ago | |
mute_service.rb | 7 years ago | |
notify_service.rb | 5 years ago | |
post_status_service.rb | 5 years ago | |
precompute_feed_service.rb | 6 years ago | |
process_hashtags_service.rb | 6 years ago | |
process_mentions_service.rb | 5 years ago | |
reblog_service.rb | 5 years ago | |
reject_follow_service.rb | 6 years ago | |
remove_status_service.rb | 5 years ago | |
report_service.rb | 6 years ago | |
resolve_account_service.rb | 5 years ago | |
resolve_url_service.rb | 5 years ago | |
search_service.rb | 5 years ago | |
suspend_account_service.rb | 6 years ago | |
tag_search_service.rb | 6 years ago | |
unallow_domain_service.rb | 5 years ago | |
unblock_domain_service.rb | 6 years ago | |
unblock_service.rb | 6 years ago | |
unfavourite_service.rb | 6 years ago | |
unfollow_service.rb | 6 years ago | |
unmute_service.rb | ||
update_account_service.rb | 5 years ago | |
verify_link_service.rb | 6 years ago | |
vote_service.rb | 5 years ago |