Hacker News new | ask | show | jobs
by Hengjie 3967 days ago
A slight tangent but good feedback to OP regardless:

I use MaxMind at work but because we're on the RoR stack, we have to download and commit the massive 30MB databases into our repository in order for it to be used on Heroku. We use https://github.com/yhirose/maxminddb which seems to be the only good option available that reads the new "mmdb" format. It's a complete pain to have to commit such massive DBs for it to work and would prefer for Rails to fetch the database upon initialization, cache it for at most 2 days and redownload if it hasn't already been restarted by Heroku.

If you can provide a solution to that, it would give us enough value for me to pay a few dollars per month for it.

1 comments

I'm in a similar boat, but just have a license key on the machine (committed) and use the maxmind updater to fetch our licensed db.

It happens once per provision, and a cron job to keep it up to date.