ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zodb
zodb
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved