Exemplo n.º 1
0
    def compact_range(self, start_key, end_key):
        ''' Given a start and end key, attempt to compact the 
        database to save space.

        :param start_key: The start key to compat from.
        :param end_key: The end to to compat to.
        '''
        LDB.leveldb_compact_range(self.database, start_key,
            len(start_key), end_key, len(end_key))