Diagnostics tasks #348
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,7 @@ defmodule Mix.Tasks.Pleroma.Diagnostics do
|
||||||
require Pleroma.Constants
|
require Pleroma.Constants
|
||||||
|
|
||||||
import Mix.Pleroma
|
import Mix.Pleroma
|
||||||
|
import Ecto.Query
|
||||||
use Mix.Task
|
use Mix.Task
|
||||||
|
|
||||||
def run(["home_timeline", nickname]) do
|
def run(["home_timeline", nickname]) do
|
||||||
|
@ -38,6 +38,7 @@ def run(["home_timeline", nickname]) do
|
||||||
recipients ++ list_memberships,
|
recipients ++ list_memberships,
|
||||||
params
|
params
|
||||||
)
|
)
|
||||||
|
|> limit(20)
|
||||||
|
|
||||||
Ecto.Adapters.SQL.explain(Repo, :all, query, analyze: true, timeout: :infinity)
|
Ecto.Adapters.SQL.explain(Repo, :all, query, analyze: true, timeout: :infinity)
|
||||||
|> IO.puts()
|
|> IO.puts()
|
||||||
|
@ -65,6 +66,7 @@ def run(["user_timeline", nickname, reading_nickname]) do
|
||||||
}
|
}
|
||||||
|> Pleroma.Web.ActivityPub.ActivityPub.user_activities_recipients()
|
|> Pleroma.Web.ActivityPub.ActivityPub.user_activities_recipients()
|
||||||
|> Pleroma.Web.ActivityPub.ActivityPub.fetch_activities_query(params)
|
|> Pleroma.Web.ActivityPub.ActivityPub.fetch_activities_query(params)
|
||||||
|
|> limit(20)
|
||||||
|
|
||||||
Ecto.Adapters.SQL.explain(Repo, :all, query, analyze: true, timeout: :infinity)
|
Ecto.Adapters.SQL.explain(Repo, :all, query, analyze: true, timeout: :infinity)
|
||||||
|> IO.puts()
|
|> IO.puts()
|
||||||
|
|
Loading…
Reference in a new issue