[Zope-dev] Re: Proposal for optimized Blob handling

Philipp von Weitershausen philipp at weitershausen.de
Wed Mar 7 21:57:31 EST 2007


Christian Theune wrote:
> Hi,
> 
> [modified slightly from a similar proposal to zope3-dev to match Zope
> 2's publisher]
> 
> I'm writing up a proposal for the ZODB to make even more efficient Blob
> handling possible.
> 
> This includes not copying the data from an uploaded file, but using a
> `link` operation when possible. 

I think this is a great idea.

Am I the only person here who immediately associated "link" with the 
POSIX? Also, am I the only one who read "when possible" as "when on a 
POSIX system where link is available", in other words, "when not on 
Windows"? One starts to wonder...

> However, the HTTPRequest class currently uses the default implementation
> of the cgi module's FieldStorage.
> 
> I propose to create a small subclass to override the `make_file` method
> to use `NamedTemporaryFile` instead of `TemporaryFile` to allow the file
> being accessible from a filename so I can apply a `link` operation.

+1


-- 
http://worldcookery.com -- Professional Zope documentation and training


More information about the Zope-Dev mailing list