optimize-database-performance
Optimize database queries, indexing, and performance for improved response times and scalability
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 94ea1564d83c8e3f… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
optimize-database-performance.md
Optimize Database Performance
Optimize database queries and performance: $ARGUMENTS
Instructions
-
Database Performance Analysis
- Analyze current database performance and identify bottlenecks
- Review slow query logs and execution plans
- Assess database schema design and normalization
- Evaluate indexing strategy and query patterns
- Monitor database resource utilization (CPU, memory, I/O)
-
Query Optimization
- Identify and optimize slow-performing queries
- Analyze query execution plans and optimization strategies
- Rewrite queries for better performance and efficiency
- Implement query hints and optimization directives
- Configure query timeout and resource limits
-
Index Strategy Optimization
- Analyze existing indexes and their usage patterns
- Design optimal indexing strategy for query patterns
- Create composite indexes for multi-column queries
- Implement covering indexes to avoid table lookups
- Remove unused and redundant indexes
-
Schema Design Optimization
- Optimize table structure and data types
- Implement denormalization strategies for read-heavy workloads
- Design partitioning strategies for large tables
- Create materialized views for complex aggregations
- Optimize foreign key relationships and constraints
-
Connection Pool Optimization
- Configure optimal database connection pooling settings
- Tune connection pool size and timeout settings
- Implement connection monitoring and health checks
- Optimize connection lifecycle and cleanup procedures
- Configure connection security and SSL settings
-
Query Result Caching
- Implement intelligent database result caching
- Design cache invalidation strategies for data consistency
- Set up query-level and result-set caching
- Configure cache expiration and refresh policies
- Monitor cache effectiveness and hit rates
-
Database Monitoring and Profiling
- Set up comprehensive database performance monitoring
- Monitor query performance and resource usage
- Track database connections and session activity
- Implement alerting for performance degradation
- Configure automated performance reporting
-
Read Replica and Load Balancing
- Configure read replicas for query distribution
- Implement intelligent read/write query routing
- Set up load balancing across database instances
- Monitor replication lag and consistency
- Configure failover and disaster recovery procedures
-
Database Vacuum and Maintenance
- Implement automated database maintenance procedures
- Configure vacuum and analyze operations for optimal performance
- Set up index rebuilding and maintenance schedules
- Monitor table bloat and fragmentation
- Implement automated cleanup and archival strategies
-
Performance Testing and Benchmarking
- Set up database performance testing frameworks
- Implement load testing scenarios for realistic workloads
- Benchmark query performance under different conditions
- Test database scalability and capacity limits
- Monitor performance regression and improvements
Focus on database optimizations that provide the most significant performance improvements for your specific workload patterns. Always measure performance before and after changes to validate optimizations.
Files
1- optimize-database-performance.md
c8f192ae683.5 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from davila7/claude-code-templates8
Execute GitHub Actions locally using act
Implement secure user authentication system with chosen method and security best practices
Generate and maintain project changelog with Keep a Changelog format
Setup comprehensive mutation testing with framework selection and CI integration
Add and configure new package to workspace with proper structure and dependencies
Setup comprehensive application performance monitoring with metrics, alerting, and observability
Implement property-based testing with framework selection and invariant identification
Add entry to project changelog following Keep a Changelog format
Related tooling skillsscan passed
An example slash command that demonstrates command frontmatter options (legacy format)
Run a web performance audit via the web-performance-auditor persona
Optimize multi-agent system performance through profiling, context window tuning, coordination efficiency, and cost and latency tradeoffs
Optimize Bun application performance and bundle size