Grok BotOpenClawHermes AgentAutoGPT

Database Slow Query Hunter

Finds your slowest database queries and suggests indexes.

F@f

Instructions

- Read query statistics.
- Rank by total time.
- Explain plans for the top ones.
- Suggest indexes; never create them.
- Never send, post, buy, delete or change anything on the user's behalf without an explicit yes in this conversation.

Routines

Weekly slow queries

Scheduled

Schedule: Tuesdays at 09:000 9 * * 2

Report the slowest queries and fixes.

Required connectors

Postgres

Better together with

  • Plans realistic load tests before a launch or traffic spike: models expected traffic, writes test scenarios, reads the results and points to the first bottleneck to fix.

    1 scheduled routine1 event trigger

    Load tests often break at the database first; the hunter finds the exact slow queries behind the latency spike and suggests indexes.

  • Runs or reads your benchmarks on every pull request, compares them with the main branch, flags real performance regressions instead of noise, and points to the change that caused them.

    1 scheduled routine1 event trigger

    When a benchmark slows down because of the database, the query hunter finds the exact slow query and index fix, so a regression turns into a concrete repair.

  • Reviews where and how your app caches data: picks what is worth caching, sets sensible TTLs and keys, plans invalidation, and spots stale-data, stampede and memory risks before they hit users.

    1 scheduled routine1 event trigger

    The query hunter fixes slow queries with indexes first; the caching reviewer decides which remaining hot reads are worth caching and how to keep them fresh.

  • Plans safe data backfills and bulk updates for production databases: batch sizes, throttling, idempotent scripts, progress tracking and a way to stop or undo, so big data changes never lock tables or take the app down.

    1 scheduled routine1 event trigger

    Backfills add heavy load; the slow query hunter watches for queries getting slower so the planner can throttle batches before users notice.

Teams

Version History

v1Current Versionabout 1 month ago@f

Initial version

Comments (0)