Skip to content

Commit 0c39f54

Browse files
committed
Use Vector memtable when bulk loading SpatialDB
1 parent b6fd781 commit 0c39f54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utilities/spatialdb/spatial_db.cc

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include "rocksdb/cache.h"
1919
#include "rocksdb/options.h"
20+
#include "rocksdb/memtablerep.h"
2021
#include "rocksdb/slice_transform.h"
2122
#include "rocksdb/table.h"
2223
#include "rocksdb/db.h"
@@ -655,6 +656,7 @@ ColumnFamilyOptions GetColumnFamilyOptions(const SpatialDBOptions& options,
655656
column_family_options.num_levels = 2;
656657
column_family_options.target_file_size_base = 256 * 1024 * 1024;
657658
column_family_options.max_mem_compaction_level = 0;
659+
column_family_options.memtable_factory.reset(new VectorRepFactory());
658660
}
659661
return column_family_options;
660662
}

0 commit comments

Comments
 (0)