Forum Moderators: coopster
I am using a commercial database from MaxMind to find the city of an IP address. MaxMind suggest in their website to use their API to query the city:
"We have two formats available for download, Binary and CSV. For the larger databases such as the City and Organization databases, the performance of the Binary format with our APIs is significantly faster than the CSV format imported into SQL. Lookups against binary database using our APIs can be up to hundreds or thousands times faster than using the CSV database."
Yet, a database expert suggested to me that a MySQL query may be much faster.
As I am making hundreds of queries/second (with several clustered servers) I need to most performing solution. FYI, the binary file is 22MB large and the CVS file 90MB. (My understanding is that the CVS file is much larger but is handled like tables, while the binary file (.dat) is smaller, but is accessed every time there is a query...)
What's your opinion? What would be the fastest solution? Thank you for your help.
is that right? or do they provide you with the API which you can put on your own servers?
if it is a comparison with both options placed on your own servers then I think the binary would be faster
but
download both and test it ;)