Use Vector memtable when bulk loading SpatialDB

main
Igor Canadi 10 years ago
parent b6fd7811eb
commit 0c39f54dfb
  1. 2
      utilities/spatialdb/spatial_db.cc

@ -17,6 +17,7 @@
#include "rocksdb/cache.h"
#include "rocksdb/options.h"
#include "rocksdb/memtablerep.h"
#include "rocksdb/slice_transform.h"
#include "rocksdb/table.h"
#include "rocksdb/db.h"
@ -655,6 +656,7 @@ ColumnFamilyOptions GetColumnFamilyOptions(const SpatialDBOptions& options,
column_family_options.num_levels = 2;
column_family_options.target_file_size_base = 256 * 1024 * 1024;
column_family_options.max_mem_compaction_level = 0;
column_family_options.memtable_factory.reset(new VectorRepFactory());
}
return column_family_options;
}

Loading…
Cancel
Save