GeoIP Question - Speed & efficiency

Maxim Dounin mdounin at mdounin.ru
Sat Aug 16 09:49:47 MSD 2008


Hello!

On Sat, Aug 16, 2008 at 08:58:03AM +0400, Igor Sysoev wrote:

>On Sat, Aug 16, 2008 at 07:22:20AM +0400, Maxim Dounin wrote:
>
>> >This country  
>> >database is quite huge and if this process happens on every hit or even  
>> >on only a selected entry page then it could be very slow. Does anyone  
>> >here have experience with this?
>> 
>> The only inconvinience of using really large geobases is config 
>> reading time.  My currently takes about 30 seconds to load - but 
>> that's for more than 30 Mb of data, and not only countries.
>
>If you have many unique values per networks, then this long load time
>is caused by searching duplicates of data in array. Otherwise, it
>may be caused by insertions to a radix tree.

Yes, I've read code and in my case it looks like unique values 
search.  One day I'll probably try to implement rbtree there, but 
currently it doesn't bugs me too much. :)

Maxim Dounin





More information about the nginx mailing list