On 1 Jul 2004, at 14:30, Peter Velychko wrote:
Hello Upayavira,
Thank you for your reply.
Yes, this is workaround. But why whole DOM tree caching is so bad idea?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.
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.
HTH
regards Jeremy
--------------------------------------------------------
If email from this address is not signed
IT IS NOT FROM MEAlways check the label, folks !!!!! --------------------------------------------------------
smime.p7s
Description: S/MIME cryptographic signature
