【发布时间】:2013-09-20 13:49:25
【问题描述】:
我想在我的数据库中填充 300 个用户和产品,但是这个过程太快了,对 Google API 的请求也是如此。我怎样才能放慢速度? (最多每秒 1 个请求)。 我在 config/environments/development.rb 中尝试过,但没有成功:
Geocoder.configure(timeout: 10000)
这是 Geocoder 呈现的内容:
Geocoding API not responding fast enough (use Geocoder.configure(:timeout => ...) to set limit).
【问题讨论】:
标签: ruby-on-rails development-environment rails-geocoder