 09326ffa56
			
		
	
	
		09326ffa56
		
	
	
	
	
		
			
			a bunch of ways to get query plans to help with debugging Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/348
		
			
				
	
	
		
			30 lines
		
	
	
		
			No EOL
		
	
	
		
			729 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			No EOL
		
	
	
		
			729 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # Diagnostics
 | |
| 
 | |
| A few tasks to help with debugging, troubleshooting, and diagnosing problems.
 | |
| 
 | |
| They mostly relate to common postgres queries. 
 | |
| 
 | |
| ## Home timeline query plan
 | |
| 
 | |
| This task will print a query plan for the home timeline of a given user.
 | |
| 
 | |
| === "OTP"
 | |
| 
 | |
|     `./bin/pleroma_ctl diagnostics home_timeline <nickname>`
 | |
| 
 | |
| === "From Source"
 | |
| 
 | |
|     `mix pleroma.diagnostics home_timeline <nickname>`
 | |
| 
 | |
| ## User timeline query plan
 | |
| 
 | |
| This task will print a query plan for the user timeline of a given user,
 | |
| from the perspective of another given user.
 | |
| 
 | |
| === "OTP"
 | |
| 
 | |
|     `./bin/pleroma_ctl diagnostics user_timeline <nickname> <viewing_nickname>`
 | |
| 
 | |
| === "From Source"
 | |
|     
 | |
|     `mix pleroma.diagnostics user_timeline <nickname> <viewing_nickname>` |