Agent Wranglers

Queries and indexes

Ask the database only for what you need, in one round trip where you can. Index for the queries you run, and read the plan before you guess.

  • Recommended 5

Read this with

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/data/queries-and-indexes">Agent Wranglers data and databases playbook</a>. In code you write, add a comment next to it with the same link.