This one time, at band camp, Stein M. Hugubakken said:
SMH>g r i t s e n k o wrote:
SMH>>
SMH>> OK. I was loading whole database of about 1.5 meg (mysql database was of
SMH>> this size) into memeory using Castor - the concept was to have a root
SMH>> class, on which children were dependent, in turn, its' children were
SMH>> dependent on them - about 6 stories of hierarchy. Once root class was
SMH>> db.loaded, it triggered consequent loading of all 6 stories of its
SMH>> descendants, many of which were collections.
The solution to the issue above is the same in Castor that it is
in OJB - lazy loading. See the following in the JDO FAQ about lazy
loading:
http://www.castor.org/jdo-faq.html#Lazy-Loading-related-questions
SMH>> It worked fine until I added one more descendant to hierarchy - what
SMH>> happened was memory use by jvm in windows nt task manager - I was
SMH>> watching - would grow, and grow, and grow, and never stop growing, then
SMH>> I would get out of memeory exception. I assigned max memory to 500 meg,
SMH>> same exception.
So was the entire contents of the database being loaded? If so,
this would only occur if the relationships in the objects cause it
to take place. IOW, Castor doesn't load the entire contents of a
database by default.
SMH>The problem I think is that Castor don't support recursive hierarchies.
SMH>
SMH>Perhaps Bruce or someone else can confirm it?
Do you mean object graphs when you refer to recursive hierarchies?
Castor supports object graphs just fine. Maybe I'm not understanding
your question fully. Please clarify your question further.
Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The Castor Project
http://www.castor.org/
Apache Geronimo
http://incubator.apache.org/projects/geronimo.html
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev