<br>Thanks by the response Chris.<br>
<br>
Thinking a bit about your responses, I started migrating the business
objects to Magma, and I already completed some collections!.<br>
<br>
But I must to learn a lot yet, and surely will be here asking again soon :)<br>
<br>
Cheers and thanks by the help.<br>
<br>
Germán.<br>
<br><br><div><span class="gmail_quote">2008/4/16, Chris Muller &lt;<a href="mailto:asqueaker@gmail.com">asqueaker@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Germán,<br> <br><br> &gt; business objects and, as I don&#39;t know another way, I tried (as stated on<br> &gt; Getting Started):<br> &gt;<br> &gt;&nbsp;&nbsp;MagmaRepositoryController<br> &gt;&nbsp;&nbsp;create: &#39;c:\myMagmaFolder&#39;<br>
 &gt;&nbsp;&nbsp;root: Dictionary new<br> <br> <br>The getting started only uses a Dictionary because it doesn&#39;t want to<br> be partial to any sort of domain.&nbsp;&nbsp;It is actually something I<br> recommend against doing nowadays.<br>
 <br><br> &gt; were instead &quot;Dictionary new&quot; I did &quot;MySystem current&quot; (the singleton<br> &gt; instance that permit to reach all the objects of the system).<br> <br> <br>Now, you do NOT want to have your root persistent object continue to<br>
 be a referenced in the image by some class variable.&nbsp;&nbsp;This will cause<br> the entire database to remain in memory and slow your commits to a<br> crawl, among other potential identity issues if you have multiple<br> users.<br>
 <br> Instead, just treat the repository root as the new &quot;location&quot; of your<br> singleton instance, accessed by &quot;mySession root&quot;.<br> <br><br> &gt; And here start the doubts:<br> &gt;<br> &gt; 1. Soon I get the serialization problem with the 10MB limit. How I should<br>
 &gt; manage this situation to create the repository by parts, to avoid the size<br> &gt; problem, doing commits more frequently if all I can do is point my whole<br> &gt; system to #root: ?<br> <br> <br>If you have a large model already in the image that you need to<br>
 initially persist, you can simply eliminate the 10-meg safety limit<br> check and commit the thing in one big transaction.&nbsp;&nbsp;Be patient, it may<br> take a while, but its a one-time thing.&nbsp;&nbsp;Once committed, you can<br> reinstate the safety check and access the model normally.<br>
 <br><br> &gt; 2.&nbsp;&nbsp;If the system were little (not problem with the serialization limit),<br> &gt; only doing the above sentence I get the repository and the objects<br> &gt; persistent?<br> <br> <br>I may not be reading what you&#39;re asking here correctly, but I think<br>
 the answer is yes.&nbsp;&nbsp;You can do &quot;one big commit&quot; just for the initial<br> &quot;load&quot; and then after that your application program should commit<br> single &quot;units of work&quot;, changes to the model that must be committed as<br>
 a whole (like a monetary transfer from one account to another), but<br> only that unit of work, as is reasonably feasible.<br> <br><br> &gt; 3. Is acceptable to use a class that inherits from Object instead Dictionary<br>
 &gt; (as in the example) to point the root object? Considerations of each<br> &gt; alternative?<br> <br> <br>Yes, not only is it acceptable, it is recommended to use a meaningful<br> domain object as your root instead of a not-so-meaningful Dictionary.<br>
 <br><br> &gt; 4. Is acceptable/possible to have more than 1 repository to 1 system ?<br> <br> <br>Yes, not only is it acceptable, it is recommended to partition your<br> domain by meaningful boundaries.&nbsp;&nbsp;For example, in my system I separate<br>
 the Accounting domain from the Contacts; each in their own repository,<br> even though Accounts reference Contacts residing in the other<br> repository.&nbsp;&nbsp;This is accomplished via MagmaForwardingProxy.<br> <br> This partitioning provides many benefits.<br>
 <br><br> &gt; Well, it&#39;s all for now, sorry if are so simple questions, but as I&#39;ve said,<br> &gt; I&#39;m stating with Magma.<br> <br> <br>Cheers,<br> <br>&nbsp;&nbsp;Chris<br> </blockquote></div><br><br clear="all"><br><br>