diff options
author | lain <lain@soykaf.club> | 2018-04-21 09:22:31 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-04-21 09:22:31 +0200 |
commit | ff5e9574760accbf92f6e351819e1566b835002e (patch) | |
tree | 38f2ba0907f8bac86c14684ef339972eda7bf41f /lib | |
parent | a61e8ac15473aca6d0ec9ef20df981bcef9d5897 (diff) | |
download | pleroma-ff5e9574760accbf92f6e351819e1566b835002e.tar.gz |
Make search use id index too.
Seems to be faster in general, query planner chooses well.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 8b3492332..c84c226e8 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -521,7 +521,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do ^query ), limit: 20, - order_by: [desc: :inserted_at] + order_by: [desc: :id] ) statuses = Repo.all(q) ++ fetched |