GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Anyone Doing GEO Ip Lookups (https://gfy.com/showthread.php?t=570919)

Adaml2 02-01-2006 11:47 AM

Anyone Doing GEO Ip Lookups
 
What DB are you using?

I got a db from ip2location for some cam pages and queries are a little slow to say the least..

mysql> SELECT ipREGION, ipCITY FROM IPCITYLATLONG WHERE (ipFROM <= 1109302065) AND (ipTO >= 1109302065);
+---------------+---------+
| ipREGION | ipCITY |
+---------------+---------+
| MASSACHUSETTS | HYANNIS |
+---------------+---------+
1 row in set (6.23 sec)

Aside from being about 70 miles off (good enough for me) I can't add 6 seconds to a page load. I don't really know what kind of times to expect for lookups either, so if you can post up what db you're using and what your times are (roughly) I'd appriciate the help :thumbsup

montythestrange 02-01-2006 11:50 AM

check the index on the ipFROM and ipTO columns...

fuzebox 02-01-2006 12:06 PM

The default way ip2location does it is ridiculous, I've got a script that imports the csv into a more manageable db schema, and a PHP include with the functions do deal with it. My queries are fast on entry-level hardware... Feel free to ICQ me :)

Adaml2 02-01-2006 12:23 PM

fuze pimped me

much apprciated man

Validus 02-01-2006 12:35 PM

The dat file is faster, or at least that is my experience. I got the Geo IP City DB from Maxmind.

d00t 02-01-2006 01:39 PM

ip2location released some new versions just a few days ago too

tical 02-01-2006 02:00 PM

u suck adam


All times are GMT -7. The time now is 02:07 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123