On Tue, Jan 15, 2013 at 2:07 PM, Leonardo Santagada <span dir="ltr">&lt;<a href="mailto:santagada@gmail.com" target="_blank">santagada@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Tue, Jan 15, 2013 at 3:10 PM, Jim Fulton <span dir="ltr">&lt;<a href="mailto:jim@zope.com" target="_blank">jim@zope.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><div>On Tue, Jan 15, 2013 at 12:00 PM, Claudiu Saftoiu &lt;<a href="mailto:csaftoiu@gmail.com" target="_blank">csaftoiu@gmail.com</a>&gt; wrote:<br>


&gt; Hello all,<br>
&gt;<br>
&gt; I&#39;m looking to speed up my server and it seems memcached would be a good<br>
&gt; way to do it - at least for the `Catalog` (I&#39;ve already put the catalog in a<br>
&gt; separate<br>
&gt; zodb with a separate zeoserver with persistent client caching enabled and it<br>
&gt; still doesn&#39;t run as nice as I like...)<br>
&gt;<br>
&gt; I&#39;ve googled around a bit and found nothing definitive, though... what&#39;s the<br>
&gt; best way to combine zodb/zeo + memcached as of now?<br>
<br>
</div></div>My opinion is that a distributed memcached isn&#39;t<br>
a big enough win, but this likely depends on your  use cases.<br>
<br>
We (ZC) took a different approach.  If there is a reasonable way<br>
to classify your corpus by URL (or other request parameter),<br>
then check out zc.resumelb.  This fit our use cases well.<br></blockquote><div><br></div></div><div>Maybe I don&#39;t understand zodb correctly but if the catalog is small enough to fit in memory wouldn&#39;t it be much faster to just cache the whole catalog on the clients? Then at least for catalog searches it is all mostly as fast as running through python objects. Memcache will put an extra serialize/deserialize step into it (plus network io, plus context switches). </div>
</div></div></div></blockquote><div><br></div><div>That would be fine, actually. Is there a way to explicitly tell ZODB/ZEO to load an entire object and keep it in the cache? I also want it to remain in the cache on connection restart, but I think I&#39;ve already accomplished that with persistent client-side caching.</div>
</div>