Extract deactivated users query to a join
[akkoma] / lib / pleroma / web / activity_pub / activity_pub.ex
index dcdc7085fdaebc45eb36f4d279100ff33cce59a3..7ed6178232bb0153a337538040a7abd485dfb64d 100644 (file)
@@ -507,6 +507,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
   defp fetch_paginated_optimized(query, opts, pagination) do
     # Note: tag-filtering funcs may apply "ORDER BY objects.id DESC",
     #   and extra sorting on "activities.id DESC NULLS LAST" would worse the query plan
+    IO.inspect(Repo.to_sql(:all, query))
     opts = Map.put(opts, :skip_extra_order, true)
 
     Pagination.fetch_paginated(query, opts, pagination)