我想用 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).