code: def commit(self, force=False):
          
          self.log.debug('Bulk commit requested')
          size = sys.getsizeof(self.docs)
  
          self.log.debug('Size of docs in KB: %d', size)
          if size > self.commit_threshold or force:
              self.log.info('Commiting %d KB to CouchDB' % size)
              self.my_db.update(self.docs)
              self.docs = []
docs: Commit data to couchdb
  
          Compared to threshold (unless forced) then sends data to couch