'Saves mtimes from the mtimes dictionary in a single database operation.'

def savemessagesmtimebulk(self, mtimes):

    data = [(mt, uid) for (uid, mt) in mtimes.items()]
    self.__sql_write('UPDATE    status    SET    mtime=?    WHERE    id=?', data, executemany=True)
    for (uid, mt) in mtimes.items():
        self.messagelist[uid]['mtime'] = mt
