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/controllers/api/v1
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.
5 years ago
..
accounts Add user notes on accounts (#14148) 6 years ago
admin
announcements
apps Remove useless `respond_to` calls (#13208) 6 years ago
crypto Fix wrong route helper in encrypted messages controller (#13952) 6 years ago
featured_tags Remove useless `respond_to` calls (#13208) 6 years ago
instances Remove useless `respond_to` calls (#13208) 6 years ago
lists
polls Add more tests for ActivityPub controllers (#13585) 6 years ago
push Add more tests for ActivityPub controllers (#13585) 6 years ago
statuses Fix not being able to unbookmark toots when blocked by their author (#14604) 5 years ago
timelines Use Status.group instead of Status.distinct in HashQueryService (#14662) 5 years ago
accounts_controller.rb Add specific rate limits for posting and following (#13172) 6 years ago
announcements_controller.rb
apps_controller.rb
blocks_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
bookmarks_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
conversations_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
custom_emojis_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
directories_controller.rb
domain_blocks_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
endorsements_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
favourites_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
featured_tags_controller.rb
filters_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
follow_requests_controller.rb
instances_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
lists_controller.rb
markers_controller.rb
media_controller.rb Add customizable thumbnails for audio and video attachments (#14145) 6 years ago
mutes_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
notifications_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
polls_controller.rb Add more tests for ActivityPub controllers (#13585) 6 years ago
preferences_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
reports_controller.rb Add rate limit for reporting (#13390) 6 years ago
scheduled_statuses_controller.rb
statuses_controller.rb Fix/14021 behaviour on add or remove toots (#14212) 5 years ago
streaming_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
suggestions_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago
trends_controller.rb Remove useless `respond_to` calls (#13208) 6 years ago