---
title: "Query optimization AI Prompts (1 Free Template) - AgentDock"
description: "1 free query optimization prompt for ChatGPT, Claude, and Gemini. Professional templates with smart variables. Copy and use instantly, or run them in the AgentDock editor."
url: "https://agentdock.ai/prompt-library/t/query-optimization"
docs_index: /llms.txt
---

# Query optimization AI Prompts (1 Free Template) - AgentDock

1 free query optimization template, including Database Indexing Explainer.

- [Database Indexing Explainer](https://agentdock.ai/prompt-library/education/coding/database-indexing-explainer-generator.md): Explain why a slow query scans every row of its table, identify the column an index would target, and show the resulting write-cost tradeoff.

## Related tags

- [Education](https://agentdock.ai/prompt-library/t/education.md)
