Skip to content

Commit

Permalink
preheat the table cache in arel
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jan 14, 2011
1 parent 3755ae0 commit 1e9685f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activerecord/test/cases/batches_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class EachTest < ActiveRecord::TestCase
def setup
@posts = Post.order("id asc")
@total = Post.count
Post.count('id') # preheat arel's table cache
end

def test_each_should_excecute_one_query_per_batch
Expand Down

0 comments on commit 1e9685f

Please sign in to comment.