红宝石在轨道上 - 耙子中止!操作:"GET MORE"



运行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

提前感谢

尝试将find_in_batches与您的集合一起使用。

最新更新