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's great, thank you.</div>
<div><br></div><div>Other thing, after the refactoring I'm getting an error when I change anything on the class structure of any class. The error is: "MaObjectSerializationSoftwareError: Individual not defined in this image".</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's strange to me because now all seem works ok and because when I rename that classes haven't persistent instances on magma repository.</div><div>
</div><div>Do you now that I'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"><<a href="mailto:ma.chris.m@gmail.com">ma.chris.m@gmail.com</a>></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)'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 <<a href="mailto:facundov79@gmail.com">facundov79@gmail.com</a>> wrote:<br>
> Hi Igor,<br>
><br>
>><br>
>> So, why you don't simply add a 'customer' ivar to document<br>
>> and to access it, you then just need to say:<br>
>><br>
>> document customer<br>
>><br>
>> instead of looking it up using index?<br>
><br>
> I'm doing a bulk load form a .csv file so then I need look up for the<br>
> document so it seems be the same.<br>
><br>
>><br>
>> 1:1 relation is a reference. Think simple :)<br>
><br>
> The relation between aDocument (with documentNumber and sex) is 1:1 but<br>
> documentNumber and customer isn't 1:1.<br>
> Facu<br>
><br>
>><br>
>> > See you,<br>
>> > Facu<br>
>> ><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Best regards,<br>
>> Igor Stasenko AKA sig.<br>
><br>
><br>
</div></div></blockquote></div><br></div>