[Zope-Coders] Status of QueueCatalog?
Shane Hathaway
shane@zope.com
Tue, 26 Nov 2002 13:45:52 -0500
Andreas Jung wrote:
>
>
> --On Dienstag, 26. November 2002 13:29 -0500 Shane Hathaway
> <shane@zope.com> wrote:
>
>> Andreas Jung wrote:
>>
>>> Can someone give a short note on the status of QueueCatalog? Is it
>>> ready for production?
>>
>>
>> Well, it's *in* production. :-) One lesson we learned, though, is that
>> you have to think about the number of buckets you need. The default is
>> 1009, and they all have to be loaded into memory to flush or examine the
>> queue. This was a big burden until we reduced it to 7 buckets. No
>> problems since.
>>
>
> Why 1009 and not 42? ;-)
I don't know. I'd guess it was chosen because it's a prime number. :-)
I think you want more than 1 and less than 1,000,000.
Shane