def refresh(self):
        """
        Reloads the collection from the database.
        """
        self.keys = []
        for key in self.db.iterator(include_value=False):
            self.keys.append(key)

        if len(self.keys) > 0:
            self.last_index = int(self.keys[-1])
        else:
            self.last_index = 0
dataset/ETHPy150Open corbt/pypeline/pypeline/DB.py/Collection.refresh/original