<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 5:15 PM, Claudiu Saftoiu <span dir="ltr">&lt;<a href="mailto:csaftoiu@gmail.com" target="_blank">csaftoiu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div>You can&#39;t cause a specific object (or collection of objects) to stay</div>
</div>
ion the cache, but if you&#39;re working set is small enough to fit in<br>
the memory or client cache, you can get the same effect.</blockquote></div></blockquote><div><br></div><div style>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. </div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><div></div></div><div>That makes sense. So, is there any way to give ZODB a Persistent and tell it &quot;load everything about the object now for this transaction&quot; 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&#39;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.</div>
</blockquote></div><br>You can do that using a set or web requests that warm up your app. This way you cache everything not only zodb data.<br><br clear="all"><div><br></div>-- <br><br>Leonardo Santagada
</div></div>