GeoIp - Binary DB vs MySQL Lookups
Recently I had to implement GeoIP lookups for a client project to determine which country user's were coming from in order to supply them locale specific content. That, in itself, is not very interesting. What really prompted sufficient interest to write this post was the difference in look up performance between the two available formats for this database.
Filed under:
Development
benchmark
binary
coldfusion
geoip
maxmind
mysql
optimisation
performance
speed
Don't use Query of Queries for simple datasets!
I've just finished a whole batch of optimisation routines for an Excel import/export that had to run on our CF8 based CRM system (thanks to Ben Nadel for his amazing POI CFC). The export had a tricky requirement whereby each row (of some 56,000 rows) had n items which needed to be set according to a lookup in a link table in the DB. Rather that running each comparison as a query against the live DB (56,000 rows x 20+ items = 1,120,000 queries!) I figured I could pull the whole link table into memory using a simple query and then use Query of Queries to save a bit of time.Tags
- coldfusion (37)
- Development (30)
- Thoughts (25)
- sotr2011 (10)
- security (9)
- Sys admin (7)
- performance (7)
- software (7)
- Meta (6)
- events (6)
- View all 203 tags »
- linux (6)
- mysql (6)
- web (6)
- Tutorials (5)
- adobe (5)
- object orientation (5)
- ajax (4)
- java (4)
- opine (4)
- optimisation (4)
- people (4)
- railo (4)
- sotr (4)
- couchdb (3)
- flash (3)
- html5 (3)
- mobile (3)
- open source (3)
- sotr2010 (3)
- windows (3)
- Under the hood (2)
- amazon (2)
- annoyances (2)
- apple (2)
- benchmark (2)
- blogging (2)
- bugs (2)
- cloud (2)
- coldfusion builder (2)
- education (2)
- fail (2)
- firefox (2)
- flex (2)
- google (2)
- javascript (2)
- licensing (2)
- nosql (2)
- series (2)
- soft skills (2)
- speed (2)
- sql (2)
- standards (2)
- video (2)
- BlazeDS (1)
- HTML (1)
- IIS (1)
- THINK (1)
- URL (1)
- admin (1)
- adsl (1)
- advertising (1)
- air (1)
- aniversary (1)
- apache (1)
- audio (1)
- backup (1)
- basic (1)
- bbc micro (1)
- best practice (1)
- binary (1)
- birthday (1)
- bitcoin (1)
- bo (1)
- books (1)
- bsd (1)
- buttons (1)
- cfbuilder (1)
- cfm (1)
- chat (1)
- coldfusion x (1)
- coldfusion zeus (1)
- computing (1)
- concept (1)
- conference (1)
- cracking (1)
- crash (1)
- cron (1)
- cryptocurrency (1)
- database (1)
- dba (1)
- debian (1)
- doh (1)
- dropbox (1)
- ebs (1)
- email (1)
- encryption (1)
- error (1)
- errors (1)
- estimating (1)
- excel (1)