[Zope3-Users] What attributes are made persistent

Chris Withers chris at simplistix.co.uk
Thu Feb 16 03:23:46 EST 2006


Peter Bengtsson wrote:
> So by using PersistentList it just means that you can use:
>  self.alist.append(1)
> in your code. The attribute, self.alist, is still saved even without
> PersistentList but it just means you have to be careful when writing
> to it.

PersistentX classes also usually subclass Persistent which means they 
get their own pickle jar. This can slow ZODB growth if you have lots of 
"big" attributes but where only one of them regularly changes: make the 
changing one a PersistentWhatever instance.

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope3-users mailing list