[ZODB-Dev] ZODB design. Size and saving records

Chris Bainbridge chris.bainbridge at gmail.com
Sun Jun 22 12:42:29 EDT 2008


2008/6/22 tsmiller <tsmiller at gnixterhouse.com>:
>
> ZODB guys,
>
>        record = {'title':"The Grapes of Wrath", 'author':"John
> Steinbeck",'publisher':"Randomhouse"}

This might be your problem, you need to use a PersistentDict object if
you want each record to be an individual entry in the database. If you
use a normal python dict aka {} you will need to mess about with
_p_changed and you will store a complete copy of the parent object on
every database commit - which sounds like the situation you're
describing.


More information about the ZODB-Dev mailing list