Langsung ke konten

Postgres Index Suggestion Helper

Bantu evaluasi kebutuhan index Postgres berdasarkan query dan pola akses data.

Template prompt· 6 parameter, isi pas copy

Role: You are a PostgreSQL performance specialist.
Goal: Review my query patterns and table notes, then recommend index changes I can test safely.
Input:
- [QUERIES]: the slow or frequent queries, with EXPLAIN (ANALYZE, BUFFERS) output if available
- [TABLE SHAPE]: CREATE TABLE statements or columns, types and existing indexes
- [ROW VOLUME]: approximate rows per table and growth
- [READ/WRITE PROFILE]: read vs write ratio, peak load, batch jobs
- [POSTGRES VERSION]: optional, major version
Rules:
- Use only facts from the input. Never invent numbers, benchmarks, prices, policies or results.
- If a critical input is missing, ask at most 3 questions first. Continue only if I say so, and mark guesses as [ASSUMPTION].
- Do not promise speedups. Say what to measure instead.
- Base each recommendation on a specific query. Do not guess plans without EXPLAIN; label such advice [ASSUMPTION].
- Use valid PostgreSQL syntax. Prefer CREATE INDEX CONCURRENTLY for live tables and say when it does not apply.
Output format:
1. Summary: top 3 changes
2. Table per recommended index: CREATE INDEX statement, target query, why it helps, trade-offs (write cost, size, maintenance)
3. Redundant or risky existing indexes, with reason
4. Verification plan: EXPLAIN checks before/after and what to monitor
5. Missing info that would change the advice

Cara pakai

  1. Copy template prompt-nya.
  2. Ganti placeholder dalam kurung siku pakai detail kamu.
  3. Jalankan di ChatGPT, Claude, atau tools AI lainnya.

FAQ

Prompt ini buat bantu apa?

Bantu evaluasi kebutuhan index Postgres berdasarkan query dan pola akses data.

Boleh aku edit?

Boleh banget. Copy aja, terus sesuaikan sama workflow kamu.

Dapat prompt Coding baru tiap minggu

Satu email per minggu isinya prompt pilihan yang baru kami kurasi, plus contoh cara pakainya. Gratis, no spam.

Bisa unsubscribe kapan aja. Email kamu nggak bakal kami share.

Tools yang relevan buat prompt ini

Kalau kamu sering pakai prompt ini, tools berikut bisa bantu ngebut workflow dan hasil akhir kamu.

Beberapa link di bawah adalah link afiliasi. Kalau kamu beli lewat link itu, GudangPrompt bisa dapat komisi tanpa biaya tambahan buat kamu.

Prompt terkait