PEATDB/Base.py
def _checkTransactionSize(self):
        """To prevent current changes swamping memory we should commit
           in batches when the cache limit is exceeded. This method should be
           called from functions likely to be involved in large commits.
           Each subtransaction commit writes the current changes out to disk
           and frees memory to make room for more changes"""
        self.changessincelastcommit += 1
        if self.changessincelastcommit > self.meta.info['cachesize']:
            self.commit(note='transaction limit reached commit')
            self.db.cacheMinimize()
            #self.db.savepoint()
            self.changessincelastcommit = 0
            print 'cache limit reached, commit'
        return
To prevent current changes swamping memory we should commit
           in batches when the cache limit is exceeded. This method should be
           called from functions likely to be involved in large commits.
           Each subtransaction commit writes the current changes out to disk
           and frees memory to make room for more changes
To prevent current changes swamping memory we should commit
in batches when the cache limit is exceeded. This method should be
called from functions likely to be involved in large commits.
Each subtransaction commit writes the current changes out to disk
and frees memory to make room for more changes
To prevent current changes swamping memory we should commit in batches when the cache limit is exceeded . This method should be called from functions likely to be involved in large commits . Each subtransaction commit writes the current changes out to disk and frees memory to make room for more changes
def _checkTransactionSize(self):
        self.changessincelastcommit += 1
        if self.changessincelastcommit > self.meta.info['cachesize']:
            self.commit(note='transaction limit reached commit')
            self.db.cacheMinimize()
            self.changessincelastcommit = 0
            print 'cache limit reached, commit'
        return
def _checkTransactionSize ( self ) : self . changessincelastcommit += 1 if self . changessincelastcommit > self . meta . info [ 'cachesize' ] : self . commit ( note = 'transaction limit reached commit' ) self . db . cacheMinimize ( ) self . changessincelastcommit = 0 print 'cache limit reached, commit' return
To prevent current changes swamping memory we should commit
in batches when the cache limit is exceeded.
To prevent current changes swamping memory we should commit in batches when the cache limit is exceeded .
"""To prevent current changes swamping memory we should commit
           in batches when the cache limit is exceeded. This method should be
           called from functions likely to be involved in large commits.
           Each subtransaction commit writes the current changes out to disk
           and frees memory to make room for more changes""" #self.db.savepoint()
self