16 Apr
2003
16 Apr
'03
1:46 p.m.
[snip]
This could be useful for other stuff as well (except streaming large object, which should never be saved in the ZODB by the way, be cause it bloats the memory when the object is loaded. It should be stream from a file, and not by reading the entire file as most file system object product I reviewed does including LocalFS which I have made a patch for).
Just FYI: Zope file objects are not completely loaded into memory when they are accessed (and served). They are divided into 64K chunks in the ZODB (where each chunk is an individual record). Files > 64k are streamed using response.write() when they are served. Files smaller than that are served all at once. -Casey