Re: Backup and Upgrade automation
Posted by David E Jones-2 on Aug 27, 2006; 7:32pm
URL: http://ofbiz.116.s1.nabble.com/Backup-and-Upgrade-automation-tp170647p170651.html
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