TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Efficiently computing locations from IP addresses

5 pointsby charzomover 17 years ago

1 comment

tlrobinsonover 17 years ago
Interesting.<p>I find it amusing that he went to all the trouble (well, not that much trouble) of using MySQL's spatial database features when the following simple query performed even better:<p><pre><code> SELECT country_code FROM ip_country WHERE ip_to &#62;= INET_ATON('%s') ORDER BY ip_to ASC LIMIT 1 </code></pre>