From 808e80936663042100eb7c333f31523d2ca4a026 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Wed, 27 Aug 2014 07:56:10 -0700 Subject: [PATCH] Adjust SpatialDB column family options --- utilities/spatialdb/spatial_db.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utilities/spatialdb/spatial_db.cc b/utilities/spatialdb/spatial_db.cc index 71a5e9d92..e2c855624 100644 --- a/utilities/spatialdb/spatial_db.cc +++ b/utilities/spatialdb/spatial_db.cc @@ -631,8 +631,9 @@ DBOptions GetDBOptions(const SpatialDBOptions& options) { ColumnFamilyOptions GetColumnFamilyOptions(const SpatialDBOptions& options, std::shared_ptr block_cache) { ColumnFamilyOptions column_family_options; - column_family_options.write_buffer_size = 256 * 1024 * 1024; // 256MB + column_family_options.write_buffer_size = 128 * 1024 * 1024; // 128MB column_family_options.max_bytes_for_level_base = 1024 * 1024 * 1024; // 1 GB + column_family_options.max_write_buffer_number = 4; // only compress levels >= 1 column_family_options.compression_per_level.resize( column_family_options.num_levels);