FileCacheManager does the copy-to-file-and-serve-as-iterator dance
for you.
http://www.dataflake.org/software/filecachemanager
Stefan
On 17. Sep 2006, at 21:09, Sidnei da Silva wrote:
One thing that is problematic today is serving large files
from the ZODB (ignoring the upcoming blob support).
a) You can't return an iterator that reads from the ZODB, because by
the time the iterator is consumed the connection has already been
closed. I believe the iterator is not consumed in the same thread,
which can cause yet more issues.
b) If you dump the data to a temp file and return that as a file
iterator, it can potentially take twice the time.
--
It doesn't necessarily do it in chronological order,
though. --Douglas Adams
_______________________________________________
Zope-Dev maillist - Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )