[Zope-dev] Serving large files
Stefan H. Holek
stefan at epy.co.at
Mon Sep 18 08:36:29 EDT 2006
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
More information about the Zope-Dev
mailing list