<br><br><div class="gmail_quote">On Tue, Dec 14, 2010 at 9:29 AM, Esteban Lorenzano <span dir="ltr"><<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>></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 -> MagmaCollection (big)<br>
key -> MagmaCollection (big)<br>
key -> 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'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'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'm asking this is because my application continues crashing each one or two days, and I can't figure out what'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 "best practice" I can use would be really welcome (I'm a little bit lost here... I'm new to magma in production, used just for toy project before this :( )<br></blockquote><div><br></div><div><div>
I'm using a session peer user, my root is my singleton (ReportSystem unique instance) and I don't have MaDictionary. I'm using MagmaPreallocatedDictionary and MagmaCollection with standard OrderedCollection for many small objects collections on my model.</div>
<div>We're testing with no more than 3 concurrent users (for now) but I didn'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>
> On 14 December 2010 01:40, Esteban Lorenzano <<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>> wrote:<br>
>> Hi,<br>
>> I wonder what's the difference between MaDictionary and MagmaDictionary... and which should I use... is indistinct?<br>
>><br>
><br>
> I think you better do not use these dicts. They are mainly for<br>
> internal use only.<br>
> They are optimized for speed not for space. And taking part in keeping<br>
> correspondence between<br>
> objects stored in database and their ids.<br>
><br>
>> Cheers,<br>
>> Esteban_______________________________________________<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>
>><br>
><br>
><br>
><br>
> --<br>
> Best regards,<br>
> 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>