maxminddb-geolite2 icon indicating copy to clipboard operation
maxminddb-geolite2 copied to clipboard

Provide option to update database

Open jessejoe opened this issue 10 years ago • 3 comments

Is there any reason to not provide a method to update the on disk database file, since this data changes quite frequently? Seems like the download.sh functionality could easily be put into a python module, which could then be used to download the most recent database (if requested) when initializing the database.

Would you be interested in a pull request for this?

jessejoe avatar Nov 05 '15 15:11 jessejoe

A simple pip install --upgrade maxminddb-geolite2 do the job (maxminddb is set as a PyPI dependency for maxminddb-geolite2).

EpocDotFr avatar Apr 18 '17 14:04 EpocDotFr

Updating the data on the fly is a bit more involved, especially in cases where the package is a dependency on a shipping version. Releasing new versions of the package regularly is something I try to do (though it is entirely manual at the moment) but the downside is indeed that released versions of software that have the package as a dependency don't get the updated database files.

What the exact best update method is is not entirely clear to me yet, it might have to be some kind of download of a database to a temporary location on demand with a way to swap the reader out in a safe manner while a program is running.

RR2DO2 avatar Apr 25 '17 09:04 RR2DO2

Any update on this?

imewish avatar Jan 16 '18 01:01 imewish