I read several ZODB tutorials, but here is one thing I still don't get: how do you free memory that is already serialized (and committed) in (say) FileStorage?
In particular, I want the following code to not leave all my memory:
for i in xrange(bignumber): iobtree[i]=Bigobject() # Bigobject is about 1Mb if(i%10==0): transaction.commit() # or savepoint(True) transaction.commit()
How can this be achieved? Is it possible to free links stored in iobtree and replace them with "weak links", which will be available upon request?
source share