Initial commit: local SQL expert AI (Ollama + CLI + prompts + systemd timer)
This commit is contained in:
23
prompts/view_analysis_template.md
Normal file
23
prompts/view_analysis_template.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# View Analysis Template
|
||||
|
||||
## Kontext (optional)
|
||||
- Wird die View häufig gejoint/weitergefiltert?
|
||||
- Erwartete Selectivity / typische Filter?
|
||||
- Indexed view überhaupt erlaubt/gewünscht? (Schema binding etc.)
|
||||
|
||||
## Aufgabe
|
||||
1) Kurzfazit
|
||||
2) Detailanalyse:
|
||||
- Expand/Inlining Effekte
|
||||
- SARGability und Pushdown von Predicates
|
||||
- Aggregationen/Distinct/Union
|
||||
- Risiken bei Scalar UDFs / Non-deterministic Funktionen
|
||||
3) Verbesserungen:
|
||||
- alternative Definition
|
||||
- Hinweise zu Indizes auf Basistabellen
|
||||
- falls relevant: indexed view Voraussetzungen (nur als Option)
|
||||
4) Risiken/Checks
|
||||
|
||||
---BEGIN VIEW---
|
||||
<PASTE HERE>
|
||||
---END VIEW---
|
||||
Reference in New Issue
Block a user