logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 9fd86402028fbf44fd417c2ee9017ca04623dc72
parent: 763756f8790809d593c34dc78196d241d230658a
Author: Roger Braun <roger@rogerbraun.net>
Date:   Tue,  8 Aug 2017 12:24:20 +0200

Order by id instead of inserted_at to better use indexes.

Diffstat:

Mlib/pleroma/web/activity_pub/activity_pub.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -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)