mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-26 17:35:15 +01:00
Order by id instead of inserted_at to better use indexes.
This commit is contained in:
parent
763756f879
commit
9fd8640202
@ -119,7 +119,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||
def fetch_activities(recipients, opts \\ %{}) do
|
||||
base_query = from activity in Activity,
|
||||
limit: 20,
|
||||
order_by: [desc: :inserted_at]
|
||||
order_by: [desc: :id]
|
||||
|
||||
base_query
|
||||
|> restrict_recipients(recipients)
|
||||
|
Loading…
Reference in New Issue
Block a user