forked from YokaiRick/akkoma
Make search use id index too.
Seems to be faster in general, query planner chooses well.
This commit is contained in:
parent
a61e8ac154
commit
ff5e957476
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,7 @@ def search(%{assigns: %{user: user}} = conn, %{"q" => query} = params) do
|
||||||
^query
|
^query
|
||||||
),
|
),
|
||||||
limit: 20,
|
limit: 20,
|
||||||
order_by: [desc: :inserted_at]
|
order_by: [desc: :id]
|
||||||
)
|
)
|
||||||
|
|
||||||
statuses = Repo.all(q) ++ fetched
|
statuses = Repo.all(q) ++ fetched
|
||||||
|
|
Loading…
Reference in a new issue