mirror of
https://github.com/php/web-php.git
synced 2026-03-31 19:52:29 +02:00
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].