cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: cocoon and hibernate sessions
Date Thu, 01 Jul 2004 13:55:27 GMT
Jeremy Quinn wrote:

>
> On 1 Jul 2004, at 14:30, Peter Velychko wrote:
>
>> Hello Upayavira,
>>
>> Thank you for your reply.
>>
>>> That could work, but it would be working round, rather than working
>>> with, Cocoon. You would also be buffering your output, which is best
>>> avoided.
>>
>> Yes, this is workaround. But why whole DOM tree caching is so bad idea?
>
>
> off the top of my head :
>
> 1) it makes lazy-initialisation useless, because I assume everything 
> would always get read from the DB regardless of whether you need it in 
> the view-layer or not
>
> 2) I (for one) have data models that if they are not lazy initialised 
> would actually load every record in the database, because everything 
> is ultimately linked.
>
> 3) you could end up with circular dependencies from (2) that make an 
> infinitely large DOM
>
> 4) there are much better ways of doing it IMHO ;)
>
> So it would depend on your data model as to how well this worked.
>
I don't think it does make lazy initialisation useless - as it produces 
the page, with processPipelineTo. Which is okay. It would work. It is 
more a question of storing the whole page in memory not being very 
advisible. Best avoided. It avoids the pipeline's SAX streaming benefit.

Upayavira



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message