Skip to content

Commit

Permalink
perf: turn off rocksdb index caching (#1446)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyeshe committed Jul 6, 2023
1 parent 0636068 commit d08ec7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ae_mdw/db/rocksdb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule AeMdw.Db.RocksDb do
# see https://github.com/facebook/rocksdb/wiki/Space-Tuning
@block_size 4 * 1024
@block_cache_size 32 * 1024 * 1024
@write_buffer_size 32 * 1024 * 1024
@write_buffer_size 64 * 1024 * 1024

@db_options [
create_if_missing: true,
Expand All @@ -44,7 +44,7 @@ defmodule AeMdw.Db.RocksDb do
block_based_table_options: [
block_size: @block_size,
block_cache_size: @block_cache_size,
cache_index_and_filter_blocks: true,
cache_index_and_filter_blocks: false,
format_version: 5
],
merge_operator: :erlang_merge_operator
Expand Down

0 comments on commit d08ec7e

Please sign in to comment.