projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a61e8ac
)
Make search use id index too.
author
lain
<lain@soykaf.club>
Sat, 21 Apr 2018 07:22:31 +0000
(09:22 +0200)
committer
lain
<lain@soykaf.club>
Sat, 21 Apr 2018 07:22:31 +0000
(09:22 +0200)
Seems to be faster in general, query planner chooses well.
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
index 8b3492332c23340a6ee5a25c4c6e1fdcf9436931..c84c226e8176ab7ea28634df3cfb4d5adff2dc89 100644
(file)
--- 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,
^query
),
limit: 20,
- order_by: [desc: :i
nserted_at
]
+ order_by: [desc: :i
d
]
)
statuses = Repo.all(q) ++ fetched
)
statuses = Repo.all(q) ++ fetched