View Single Post
Old 11-16-2010, 09:06 AM  
CrocMint
Confirmed User
 
CrocMint's Avatar
 
Industry Role:
Join Date: Oct 2010
Posts: 227
Quote:
Originally Posted by Davy View Post
I will also load a probably huge file on every page load.
Do yourself a favor and import the data into a database.
I dont think importing in mysql will increase performance...
Mysql DB will be huge enough and searching mysql db will not take less resource than searching their dat file...

I'm using other method to opimize this - caching resolved countries for visitor IP's , so at least when single surfer is visiting page(s) with geo detection multiple times within day or two, it only searches .dat file once for him.
__________________
Our Herbal Supplements for Adult Health - a New Revenue Stream for You - mike[at]crocmint.com
CrocMint is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote