耙子流产了!操作:“获取更多”

时间:2013-02-10 04:41:03

标签: ruby-on-rails ruby mongodb rake moped

运行rake任务时出现以下错误。任何人都可以帮助我吗?

错误

rake aborted!
The operation: "GET MORE"
failed with error "cursor 178700246530 not found"
C:/Ruby193/lib/ruby/gems/1.9.1/gems/moped-1.3.2/lib/moped/node.rb:210:in `get_more'

我的佣金代码

MyCollection.where(:name => "abc").each do |comp|   
 l =     open(comp.logo_url)
 comp.logo = l
 comp.save!
end

提前致谢

1 个答案:

答案 0 :(得分:-2)

尝试与find_in_batches一起使用您的收藏。