Forum Topics : Development / More than 500.000 lookups per second...
This was originally a comment, but I though it belonged in an own post instead.
How can you handle more than 500.000 or even millions of lookups per seconds with an average computer?
You could make an extremely fast "searcher" with not much work, all it requires is about 4,3gigs or space...(can be made less with a little work)
Very easy, ditch the database and use some drive space instead. Here is a breif explanation...
Simply, only 202 countries are present, one byte is enough for each IP t?hen, then you allocate 256^4 of space (approx 4,3gig) where each byte represents an IP address which then points to a contry... (less space can be used by removing large "dead" IP address areas)
Using this on a filesystem, would mean extremely fast lookups.
If interested I would be happy to tell you more.
If there are questions about this, please contact me.
How can you handle more than 500.000 or even millions of lookups per seconds with an average computer?
You could make an extremely fast "searcher" with not much work, all it requires is about 4,3gigs or space...(can be made less with a little work)
Very easy, ditch the database and use some drive space instead. Here is a breif explanation...
Simply, only 202 countries are present, one byte is enough for each IP t?hen, then you allocate 256^4 of space (approx 4,3gig) where each byte represents an IP address which then points to a contry... (less space can be used by removing large "dead" IP address areas)
Using this on a filesystem, would mean extremely fast lookups.
If interested I would be happy to tell you more.
If there are questions about this, please contact me.
