Chirs/Igor,<div>I refactorized my model to use a MagmaPreallocatedDictionary with a especial unique number generated with the documentNumber and the gender of each client.</div><div><div>Now I can proccess 1250 transactions from a csv file in less than 3 SECONDS including the time openning and proccessing of the file. So that&#39;s great, thank you.</div>
<div><br></div><div>Other thing, after the refactoring I&#39;m getting an error when I change anything on the class structure of any class. The error is: &quot;MaObjectSerializationSoftwareError: Individual not defined in this image&quot;.</div>
<div>That I did was rename two customer subclasses:</div><div><br></div><div>Previous:</div><div>Customer</div><div>    Individual</div><div>    Organization</div><div><br></div><div>Now:</div><div>Customer</div><div>    NaturalPerson (Persona Física)</div>
<div>    LegalPerson (Persona Jurídica)</div><div><br></div><div>It&#39;s strange to me because now all seem works ok and because when I rename that classes haven&#39;t persistent instances on magma repository.</div><div>
 </div><div>Do you now that I&#39;m doing wrong? Is it possible rename a persistent class?</div><div><br></div><div>Thanks,</div><div>Facu</div><br><div class="gmail_quote">On Fri, Dec 10, 2010 at 2:26 PM, Chris Muller <span dir="ltr">&lt;<a href="mailto:ma.chris.m@gmail.com">ma.chris.m@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;">Another thing to consider, how many unique documents are there?  You<br>
could make a temporary (but persistent) standard Dictionary of<br>
Documents during the bulk-load process to provide for fast-lookup.<br>
Build up the entire Document Dictionary first, commit it, then<br>
enumerate customers to quickly associate the document(Id)&#39;s.<br>
<br>
Something like that...<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Fri, Dec 10, 2010 at 7:05 AM, Facundo Vozzi &lt;<a href="mailto:facundov79@gmail.com">facundov79@gmail.com</a>&gt; wrote:<br>
&gt; Hi Igor,<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; So, why you don&#39;t simply add a &#39;customer&#39; ivar to document<br>
&gt;&gt; and to access it, you then just need to say:<br>
&gt;&gt;<br>
&gt;&gt; document customer<br>
&gt;&gt;<br>
&gt;&gt; instead of looking it up using index?<br>
&gt;<br>
&gt; I&#39;m doing a bulk load form a .csv file so then I need look up for the<br>
&gt; document so it seems be the same.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; 1:1 relation is a reference. Think simple :)<br>
&gt;<br>
&gt; The relation between aDocument (with documentNumber and sex) is 1:1 but<br>
&gt; documentNumber and customer isn&#39;t 1:1.<br>
&gt; Facu<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt; See you,<br>
&gt;&gt; &gt; Facu<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Best regards,<br>
&gt;&gt; Igor Stasenko AKA sig.<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>