Re: [ZODB-Dev] ZODB design. Size and saving records
by Chris Bainbridge other posts by this author
Jun 22 2008 9:43AM messages near this date
Re: [ZODB-Dev] ZODB design. Size and saving records
|
Re: [ZODB-Dev] ZODB design. Size and saving records
2008/6/22 tsmiller <tsmiller@[...].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.
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/
ZODB-Dev mailing list - ZODB-Dev@[...].org
http://mail.zope.org/mailman/listinfo/zodb-dev
Thread:
Tsmiller
Marius Gedminas
Chris Bainbridge
Andreas Jung
|