What this agent helps you do
A PlanetScale Insights performance agent helps teams understand database performance symptoms before changing schema or application code. It summarizes query risk, usage patterns, and follow-up diagnostics.
When to use this workflow
Use it when a page slows down, a release changes database usage, a query appears expensive, or a team wants a proactive performance review.
How PlanetScale gives the agent context
Connect PlanetScale and specify the organization, database, branch, timeframe, or performance symptom. Ask the agent to keep production-impacting changes behind approval.
Example starter prompt
Review PlanetScale performance context for this database. Summarize expensive query patterns, likely risks, validation checks, and approval-ready optimization recommendations.
Suggested workflow steps
The agent gathers performance context, ranks query or branch concerns, maps them to possible application behavior, and proposes safe diagnostics.
Expected handoff
The output should include findings, hypotheses, validation steps, and approval-ready changes. Pair with GitHub for code paths related to queries.