Magma with style

Chris Muller ma.chris.m at gmail.com
Fri Dec 10 17:26:13 UTC 2010


Another thing to consider, how many unique documents are there?  You
could make a temporary (but persistent) standard Dictionary of
Documents during the bulk-load process to provide for fast-lookup.
Build up the entire Document Dictionary first, commit it, then
enumerate customers to quickly associate the document(Id)'s.

Something like that...



On Fri, Dec 10, 2010 at 7:05 AM, Facundo Vozzi <facundov79 at gmail.com> wrote:
> Hi Igor,
>
>>
>> So, why you don't simply add a 'customer' ivar to document
>> and to access it, you then just need to say:
>>
>> document customer
>>
>> instead of looking it up using index?
>
> I'm doing a bulk load form a .csv file so then I need look up for the
> document so it seems be the same.
>
>>
>> 1:1 relation is a reference. Think simple :)
>
> The relation between aDocument (with documentNumber and sex) is 1:1 but
> documentNumber and customer isn't 1:1.
> Facu
>
>>
>> > See you,
>> > Facu
>> >
>>
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko AKA sig.
>
>


More information about the Magma mailing list