From 0c39f54dfb62f00dbef512d7def946b55c3cf025 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Tue, 26 Aug 2014 19:01:36 -0700 Subject: [PATCH] Use Vector memtable when bulk loading SpatialDB --- utilities/spatialdb/spatial_db.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utilities/spatialdb/spatial_db.cc b/utilities/spatialdb/spatial_db.cc index 3dff346bb..71a5e9d92 100644 --- a/utilities/spatialdb/spatial_db.cc +++ b/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; }