Loading...
Loading...
Found 3 Skills
Prevent N+1 queries by eager loading; enable lazy-loading protection in non-production; choose selective fields
Prevent N+1 queries by eager loading; enable lazy-loading protection in non-production; choose selective fields
Expert guidance for writing efficient, correct Active Record queries in Rails 8.1. Use when writing queries, finding records, building scopes, fixing N+1 queries, using where clauses, includes, joins, eager loading, filtering, searching, plucking data, selecting records, or optimizing database queries. Covers where, find, scopes, includes vs preload vs eager_load, joins, pluck, select, calculations, batching, and query anti-patterns.