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

Leonardo Santagada santagada at gmail.com
Tue Jan 15 19:39:32 UTC 2013


On Tue, Jan 15, 2013 at 5:15 PM, Claudiu Saftoiu <csaftoiu at gmail.com> wrote:

> You can't cause a specific object (or collection of objects) to stay
>>  ion the cache, but if you're working set is small enough to fit in
>> the memory or client cache, you can get the same effect.
>
>
So just setting the cache size for the catalog db to be bigger than the
database is everything you need to have it mostly not touch the disc at
all.


> That makes sense. So, is there any way to give ZODB a Persistent and tell
> it "load everything about the object now for this transaction" so  that the
> cache mechanism then gets triggered, or do I have to do a custom search
> through every aspect of the object, touching all Persistents it touches,
> etc, in order to get everything loaded? Essentially, when  the server
> restarts, I'd like to pre-load all these objects (my cache is indeed big
> enough), so that if a few hours later someone makes a request that uses it,
> the objects will already be cached instead of starting to be cached right
> then.
>

You can do that using a set or web requests that warm up your app. This way
you cache everything not only zodb data.


-- 

Leonardo Santagada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.zope.org/pipermail/zodb-dev/attachments/20130115/db73832c/attachment-0001.html>


More information about the ZODB-Dev mailing list