Rails Database Optimizer
Optimizes PostgreSQL and SQLite query performance for Ruby on Rails applications through advanced indexing and ActiveRecord tuning.
The Rails Database Optimizer skill provides specialized expertise in diagnosing and resolving database performance bottlenecks within Rails environments. It interprets EXPLAIN ANALYZE outputs to identify slow sequential scans, suggests advanced PostgreSQL indexing strategies like GIN, GiST, and BRIN, and provides actionable ActiveRecord refactoring patterns. Whether you are dealing with N+1 queries, complex JSONB filtering, or massive batch updates, this skill helps you implement mechanical sympathy for your database to ensure high-performance data access.
主要功能
01Detection and resolution of N+1 query patterns using ActiveRecord eager loading
02Performance tuning for specialized data types like JSONB, arrays, and geometric ranges
03Advanced index recommendations including composite, partial, and expression indexes
04Automated EXPLAIN ANALYZE interpretation for PostgreSQL and SQLite
0539 GitHub stars
06Guidance on large-scale data processing using find_each and in_batches
使用场景
01Diagnosing and fixing slow-loading API endpoints or dashboards in a Rails application
02Implementing efficient search across JSONB metadata columns using GIN indexes
03Optimizing large-scale data migrations to prevent database lock contention and memory bloat