Skip to content
Snippets Groups Projects
Commit a76cdcef authored by Alex Reisner's avatar Alex Reisner
Browse files

Clean up language.

parent 859615ff
No related branches found
No related tags found
No related merge requests found
......@@ -98,14 +98,9 @@ If you have just added geocoding to an existing application with a lot of object
rake geocode:all CLASS=YourModel
Geocoder will print warnings if you exceed the rate limit for your geocoding service. Some services — Google notably — enforce a per-second limit in addition to a per-day limit. To avoid exceeding the per-second limit, you can add a `sleep` option to the rake task, like so:
rake geocode:all CLASS=YourModel sleep=0.25
Batch processing.If your database is large, you can handle batches:
rake geocode:all CLASS=YourModel sleep=0.25 batch=100
Geocoder will print warnings if you exceed the rate limit for your geocoding service. Some services — Google notably — enforce a per-second limit in addition to a per-day limit. To avoid exceeding the per-second limit, you can add a `SLEEP` option to pause between requests for a given amount of time. You can also load objects in batches to save memory, for example:
rake geocode:all CLASS=YourModel SLEEP=0.25 BATCH=100
### Avoiding Unnecessary API Requests
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment