I'm using the free MaxMind geoip files to do geotargetting on my site I do it the easy way by including the geoip.dat and geoip.inc files would it be faster if I queried a database instead of the geoip.dat file?
I can't use the apache module because I'm on a shared host
Typically sending a query to a database would be quicker than using a flat file. Databases are designed to optimize handling and searching large volumes of data which what you need in this instance.
Having said that however the only way to know for sure is to compare the speed of each method on your server.
I think there are ways to get data from a file efficiently. even in a shared hosting you can use it. There is no problem at all. You can try this. They update very frequently.