profiling-slow-api-endpoints - Profile slow PostHog API endpoints in Postgres or Python.
Profiles slow PostHog API endpoints spending time in Postgres or Python using APM traces, production EXPLAIN, and post-deploy verification.
Tags
Updated: 2026-09-14Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Analyze APM performance traces
- Capture exact SQL and parameters
- Run production database EXPLAIN queries
- Compare query execution plans
- Verify post-deploy latency metrics
Inputs
- APM performance traces
- Endpoint SQL queries and parameters
- Production read replica database
Outputs
- Query plan comparison reports
- Latency percentile measurements
- Feature flags for staged rollout
Requirements
- Metabase production read replica access
- posthog:query-apm-spans tool access
- Postgres or Python PostHog endpoint
