[ZODB-Dev] what's the latest on zodb/zeo+memcached?

Jim Fulton jim at zope.com
Fri Jan 18 17:04:10 UTC 2013


On Fri, Jan 18, 2013 at 11:55 AM, Claudiu Saftoiu <csaftoiu at gmail.com> wrote:
>
>>
>>>
>>> If you want to load the btree item into cache, you need to do
>>>
>>>               item._p_activate()
>>
>>
>> That's not going to work, since `item` is a tuple. I don't want to load
>> the item itself into the cache, I just want the btree to be in the cache.
>
>
> Er, to be clearer: my goal is for the preload to load everything into the
> cache that the query mechanism might use.
>
> It seems the bucket approach only takes ~10 seconds on the 350k-sized index
> trees vs. ~60-90 seconds. This seems to indicate that less things end up
> being pre-loaded...

I guess I was too subtle before.

Preloading is a waste of time.  Just use a persistent ZEO cache
of adequate size and be done with it.

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton
Jerky is better than bacon! http://zo.pe/Kqm


More information about the ZODB-Dev mailing list