ActiveRecord find_each combined with limit and order

后端 未结 13 2087
温柔的废话
温柔的废话 2020-12-02 11:41

I\'m trying to run a query of about 50,000 records using ActiveRecord\'s find_each method, but it seems to be ignoring my other parameters like so:



        
13条回答
  •  抹茶落季
    2020-12-02 12:27

    Rails 6.1 adds support for descending order in find_each, find_in_batches and in_batches.

提交回复
热议问题