mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #16174 from tgxworld/doc_fix
[ci skip] Fix grammar of eager loading for ActiveRecord::Associations
This commit is contained in:
commit
942b3a2434
1 changed files with 2 additions and 2 deletions
|
@ -717,9 +717,9 @@ module ActiveRecord
|
|||
# == Eager loading of associations
|
||||
#
|
||||
# Eager loading is a way to find objects of a certain class and a number of named associations.
|
||||
# This is one of the easiest ways of to prevent the dreaded 1+N problem in which fetching 100
|
||||
# This is one of the easiest ways of to prevent the dreaded N+1 problem in which fetching 100
|
||||
# posts that each need to display their author triggers 101 database queries. Through the
|
||||
# use of eager loading, the 101 queries can be reduced to 2.
|
||||
# use of eager loading, the number of queries will be reduced from 101 to 2.
|
||||
#
|
||||
# class Post < ActiveRecord::Base
|
||||
# belongs_to :author
|
||||
|
|
Loading…
Reference in a new issue