[Zope-dev] Re: Serving large files

Rocky Burt rocky at serverzen.com
Mon Sep 18 07:29:11 EDT 2006


On Sun, 2006-17-09 at 16:09 -0300, Sidnei da Silva wrote:
> b) If you dump the data to a temp file and return that as a file
>    iterator, it can potentially take twice the time.

Potentially, yes... but from a practical standpoint I believe this will
never happen.  Writing to a tempfile over any sort of local storage
(even a local network) will be *much* faster than downloading the file
itself.  If this is indeed a problem perhaps it's a deployment issue
where you should ensure the temp dir is on a fast local volume to make
sure this never happens.

As it stands right now this seems to be the only sensible approach to
returning a large file.

- Rocky

-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
News About The Server (blog) -- http://www.serverzen.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20060918/5e7704d9/attachment.bin


More information about the Zope-Dev mailing list