performance-optimization

Detect and fix Rails performance bottlenecks including N+1 queries and memory leaks.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/reckerswartz/resume_builder --skill performance-optimization-reckerswartz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-optimization
Source: https://github.com/reckerswartz/resume_builder/tree/main/.windsurf/skills/performance-optimization
Command: npx skills add https://github.com/reckerswartz/resume_builder --skill performance-optimization-reckerswartz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identifies and fixes Rails performance issues including N+1 queries, slow queries, and memory problems.

Core Features & Use Cases

  • N+1 query detection and prevention
  • Query optimization and indexing guidance
  • Memory management and profiling recommendations
  • Performance monitoring and diagnostics workflows

Quick Start

Install and enable Bullet and rack-mini-profiler in your development environment to detect N+1 queries and profile memory and performance hotspots.

Frequently Asked Questions about performance-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix N+1 queries in Rails?

Fix Rails N+1 queries by applying eager loading strategies using Bullet to detect them in your development environment, then optimizing associations with includes or preload.

What's the best way to profile memory leaks in a Rails app?

Profile memory leaks in a Rails app by using rack-mini-profiler to identify performance hotspots and applying memory profiling workflows to isolate and resolve the leaks.

Does this Rails performance optimization guidance apply to Rails 8.1?

Yes, this performance optimization guidance specifically targets Rails 8.1 apps in development and testing environments to resolve slow SQL and memory issues.

How do I detect slow SQL queries in Rails?

Detect slow SQL queries in Rails by running rack-mini-profiler and Bullet in your development environment to apply indexing guidance and query optimization.

What tools do I need to set up Rails performance profiling?

Set up Rails performance profiling by installing and enabling Bullet and rack-mini-profiler in your development environment to detect N+1 queries and memory hotspots.