Re: Backup and Upgrade automation
Posted by
BJ Freeman on
Aug 27, 2006; 7:43pm
URL: http://ofbiz.116.s1.nabble.com/Backup-and-Upgrade-automation-tp170647p170652.html
The Tree was more to import those entities with PFK in them first.
Maybe then just remove all Forien keeps before import.
Will have to look at the import again. did not see how to do an
conversion while importing. especially if you have left over data that
goes into another entity.
David E Jones sent the following on 8/27/2006 11:32 AM:
>
> On Aug 26, 2006, at 7:02 PM, BJ Freeman wrote:
>
>> 3- todo-- build a entity tree of what has to be imported first, from
>> the entity defs in the upgrade.
>
> Best of luck with this. I think the term for it is "NP Hard" which means
> impossible for the purposes of our unfortunate reality. In fact, if the
> goal is to avoid foreign key problems this is impossible because of
> loops in the graph, even sometimes from/to a single node... ;)
>
>> 4) todo-- import data by reading the Xml as a reader, in stead of Dom.
>> this would read the old entity data, re-arrange the data to the new
>> entity model using the xml generated in #2. This allows large xml
>> files without using up and/or running out of memory.
>>
>> the reader would read a element at a time and submit it for import.
>
> The Entity Engine XML Import stuff already works this way.
>
> -David
>
>
>