SQL Pro
SQL-Abfragen und Datenbankoptimierung meistern
Komplexe Datenbankabfragen und Performance-Probleme verlangsamen Anwendungen und frustrieren Entwickler. Diese Skill liefert Expertenwissen zur SQL-Optimierung, fortgeschrittene Abfragetechniken und Datenbankarchitekturberatung für moderne Cloud-native Systeme.
Die Skill-ZIP herunterladen
In Claude hochladen
Gehe zu Einstellungen → Fähigkeiten → Skills → Skill hochladen
Einschalten und loslegen
Teste es
Verwendung von "SQL Pro". Optimize a customer cohort retention query for a dataset with 50 million users
Erwartetes Ergebnis:
- Provides optimized SQL using window functions and CTEs
- Recommends appropriate indexes on signup_date and user_id columns
- Suggests partitioning strategy by signup month for faster queries
- Includes EXPLAIN analysis showing reduced scan operations
Verwendung von "SQL Pro". Design schema for multi-tenant task management app with GDPR compliance
Erwartetes Ergebnis:
- Presents normalized schema with tenant_id isolation on all tables
- Includes data retention policies and soft delete patterns
- Shows row-level security implementation for tenant access control
- Provides migration script template for schema deployment
Sicherheitsaudit
SicherThis is a prompt-only skill containing SQL expertise and guidance. Static analysis scanned 0 files with 0 lines of executable code. No security risks detected as the skill provides only conversational SQL guidance without any code execution capabilities.
Qualitätsbewertung
Was du bauen kannst
E-Commerce-Plattform-Optimierung
Datenbankperformance für stark frequentierte Online-Shops mit komplexen Produktkatalogen und Auftragsverarbeitung optimieren.
Data-Warehouse-Analytik
Effiziente analytische Abfragen für Business-Intelligence-Dashboards und Reporting-Systeme entwerfen.
SaaS-Datenbankarchitektur
Skalierbare Multi-Tenant-Datenbankschemata mit proper Isolation und GDPR-Compliance erstellen.
Probiere diese Prompts
Review this SQL query for correctness and suggest improvements: [paste your query]. The table schema is: [describe schema]. Expected output: [describe what you need].
This query takes too long on a table with [row count] rows. Current execution time: [time]. EXPLAIN plan shows: [paste plan]. Optimize for faster execution while maintaining correctness.
Design a database schema for [application type] with these requirements: [list requirements]. Must support [scale expectations] and comply with [regulations]. Include indexing strategy.
Plan a migration from [source database] to [target database] for a [size] database with [key constraints]. Include: schema conversion, data migration approach, downtime minimization, and rollback plan.
Bewährte Verfahren
- Verwenden Sie immer parametrisierte Abfragen, um SQL-Injection-Schwachstellen zu verhindern
- Testen Sie die Abfrageleistung mit realistischen Datenvolumen, bevor Sie in die Produktion deployen
- Dokumentieren Sie komplexe Abfragen mit Kommentaren, die die Geschäftslogik und Annahmen erläutern
Vermeiden
- Komplexe Abfragen ohne Backups direkt auf Produktionsdatenbanken auszuführen
- SELECT * anstelle der erforderlichen Spalten in Produktionscode verwenden
- EXPLAIN-Pläne ignorieren und sich auf Intuition bei der Abfrageoptimierung verlassen