Diagnostics tasks (#348)
[akkoma] / docs / docs / administration / CLI_tasks / diagnostics.md
1 # Diagnostics
2
3 A few tasks to help with debugging, troubleshooting, and diagnosing problems.
4
5 They mostly relate to common postgres queries.
6
7 ## Home timeline query plan
8
9 This task will print a query plan for the home timeline of a given user.
10
11 === "OTP"
12
13 `./bin/pleroma_ctl diagnostics home_timeline <nickname>`
14
15 === "From Source"
16
17 `mix pleroma.diagnostics home_timeline <nickname>`
18
19 ## User timeline query plan
20
21 This task will print a query plan for the user timeline of a given user,
22 from the perspective of another given user.
23
24 === "OTP"
25
26 `./bin/pleroma_ctl diagnostics user_timeline <nickname> <viewing_nickname>`
27
28 === "From Source"
29
30 `mix pleroma.diagnostics user_timeline <nickname> <viewing_nickname>`