<br><br><div class="gmail_quote">On Tue, Dec 14, 2010 at 9:29 AM, Esteban Lorenzano <span dir="ltr">&lt;<a href="mailto:estebanlm@gmail.com">estebanlm@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;">
mmm...<br>
AFAIU the objective of using magma collections is to avoid the read/write of big collections.... and I have this structure:<br>
<br>
MaDictionary<br>
        key -&gt; MagmaCollection (big)<br>
        key -&gt; MagmaCollection (big)<br>
        key -&gt; MagmaCollection (big)<br>
<br>
If I replace MaDictionary with Dictionary, I will be reading/writing the full dictionary each time I add an element to the dictionary... isn&#39;t?<br></blockquote><div><br></div><div>I think that you need replace MaDictionary with MagmaPreallocatedDictionary not with standard Dictionary.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
btw... I&#39;m using an unique MagmaSession to connect to repository (no real need of other... no more than 3 users connected at the same time)... and the real reason I&#39;m asking this is because my application continues crashing each one or two days, and I can&#39;t figure out what&#39;s happening :(<br>
</blockquote><div><br></div><div>Do you think that MaDicitonary is causing your crash ? </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
So, any &quot;best practice&quot; I can use would be really welcome (I&#39;m a little bit lost here... I&#39;m new to magma in production, used just for toy project before this :( )<br></blockquote><div><br></div><div><div>
I&#39;m using a session peer user, my root is my singleton (ReportSystem unique instance) and I don&#39;t have MaDictionary. I&#39;m using MagmaPreallocatedDictionary and MagmaCollection with standard OrderedCollection for many small objects collections on my model.</div>
<div>We&#39;re testing with no more than 3 concurrent users (for now) but I didn&#39;t have any crash so far.</div></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Cheers,<br>
Esteban<br></blockquote><div><br></div><div>See you,</div><div>Facu </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
El 14/12/2010, a las 6:12a.m., Igor Stasenko escribió:<br>
<div><div></div><div class="h5"><br>
&gt; On 14 December 2010 01:40, Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt; I wonder what&#39;s the difference between MaDictionary and MagmaDictionary... and which should I use... is indistinct?<br>
&gt;&gt;<br>
&gt;<br>
&gt; I think you better do not use these dicts. They are mainly for<br>
&gt; internal use only.<br>
&gt; They are optimized for speed not for space. And taking part in keeping<br>
&gt; correspondence between<br>
&gt; objects stored in database and their ids.<br>
&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Esteban_______________________________________________<br>
&gt;&gt; Magma mailing list<br>
&gt;&gt; <a href="mailto:Magma@lists.squeakfoundation.org">Magma@lists.squeakfoundation.org</a><br>
&gt;&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/magma" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/magma</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Best regards,<br>
&gt; Igor Stasenko AKA sig.<br>
<br>
_______________________________________________<br>
Magma mailing list<br>
<a href="mailto:Magma@lists.squeakfoundation.org">Magma@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/magma" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/magma</a><br>
</div></div></blockquote></div><br>