LabscoMCP early access ↗
PostHog avatar✓ Official

diagnosing-endpoint-performance

MCP connection required★ 59 on GitHub
part of posthog/ai-pluginby posthog

One slow or costly published query, taken apart and handed back with a single recommendation: hold the answer in cache longer, pre-compute it, or rewrite the query underneath.

WHEN TO USE

SCOPE

USE FOR

  • Work out why one named PostHog endpoint is timing out or running slowly.
  • Decide whether raising the cache TTL alone would fix a slow endpoint cheaply.
  • Check whether an endpoint is eligible for materialisation and worth enabling it.
  • Turn a query's materialisation rejection reason into a concrete rewrite.
  • Find out which endpoint version is actually running before tuning the wrong one.

NOT FOR

  • Audit endpoint health across a whole project rather than tune one endpoint (use auditing-endpoints instead).
  • Read an endpoint's raw execution logs or the error from one failed run (use exploring-endpoint-execution-logs instead).