Browse Source

Do not use LMDB buffers for indices.

Stefano Cossu 7 years ago
parent
commit
f327123f8c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lakesuperior/store_layouts/ldp_rs/lmdb_store.py

+ 1 - 2
lakesuperior/store_layouts/ldp_rs/lmdb_store.py

@@ -302,7 +302,6 @@ class LmdbStore(Store):
         '''
         Return length of the dataset.
         '''
-        import pdb; pdb.set_trace()
         if context == self:
             context = None
         if isinstance(context, Graph):
@@ -354,7 +353,7 @@ class LmdbStore(Store):
         logger.info('Beginning a {} transaction.'.format(
             'read/write' if write else 'read-only'))
         self.data_txn = self.data_env.begin(buffers=True, write=write)
-        self.idx_txn = self.idx_env.begin(buffers=True, write=write)
+        self.idx_txn = self.idx_env.begin(buffers=False, write=write)
 
         self.is_txn_rw = write