[ZODB-Dev] ZODB memory problems (was: processing a Very Large file)

Christian Theune ct at gocept.com
Sun May 29 05:29:06 EDT 2005


Am Samstag, den 21.05.2005, 17:38 +0200 schrieb Christian Heimes:
> Grab the Zope2 sources and read lib/python/OFS/Image.py. Zope's 
> OFS.Image.Image class (and also Zope3's implementation) is using a so 
> called possible large data class (Pdata) that is a subclass of Persistent.
> 
> Pdata is using a simple and genious approach to minimize the memory 
> usage when storing large binary data in ZODB. The data is read from a 
> [...]

Actually Pdata has some drawbacks. When the blobsupport branch gets
declared stable (I think it's not gonna happen in 3.4, but nobody told
me otherwise) we'll have really good blob support without this black
magic.

Cheers,
Christian

-- 
gocept gmbh & co. kg - schalaunische str. 6 - 06366 koethen - germany
www.gocept.com - ct at gocept.com - phone +49 3496 30 99 112 -
fax +49 3496 30 99 118 - zope and plone consulting and development
-------------- 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/zodb-dev/attachments/20050529/38ced080/attachment.bin


More information about the ZODB-Dev mailing list