diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-03-14 14:37:08 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-14 14:37:08 +0000 |
commit | f60445940ffce7cff34d84367032ecdc45ef376e (patch) | |
tree | 557cbfb1ddd5f6e8b7ac14c2cd1929008d523776 /railties | |
parent | f5efe1cf8c28e102ac28494273683e1094561692 (diff) | |
download | rails-f60445940ffce7cff34d84367032ecdc45ef376e.tar.gz rails-f60445940ffce7cff34d84367032ecdc45ef376e.tar.bz2 rails-f60445940ffce7cff34d84367032ecdc45ef376e.zip |
Fix the table name
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index 5806578e0d..055fe00e6a 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -181,7 +181,7 @@ end But if the total number of rows in the table is very large, the above approach may vary from being under performant to just plain impossible. -This is because +LegacySurvey.all+ makes Active Record fetch _the entire table_, build a model object per row, and keep the entire array in the memory. Sometimes that is just too many objects and demands too much memory. +This is because +User.all+ makes Active Record fetch _the entire table_, build a model object per row, and keep the entire array in the memory. Sometimes that is just too many objects and demands too much memory. h5. +find_each+ |