1
0
mirror of https://github.com/php/web-php.git synced 2026-03-31 19:52:29 +02:00
Files
archived-web-php/include
Gabor Hojtsy 55513d6ab8 Drop out ugly workaround to make the country lookup work
The database has errors, so we need to wait for that to be
fixed...

Some speed fixes:

 - do not search in the DB if we were unable to find any
   helpful data in the index. A full DB search is something
   we should not do because of performance reasons

 - return a two element array in the index lookup specifying
   a range where the IP should be in the DB (if it is correct).
   If we pass that range, we were unable to find the IP.
   This reduces the number of compared records significantly

Note that this is not a fix for Rasmus' and others'
lookup problems. That is caued by the DB containing
overlapping IP ranges, which are not OK for our indexer,
and would even not return valid results in an SQL
'BETWEEN' search [which is the recommended search
method on ip-to-country.com].
2003-05-25 12:39:26 +00:00
..
2003-05-17 13:57:32 +00:00
2002-01-30 18:33:56 +00:00
2003-05-03 15:59:06 +00:00
2003-05-16 19:35:16 +00:00