You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2016/05/09 21:29:20 UTC
[3/4] mem3 commit: updated refs/heads/master to 0b70afb
Add read_concurrency option to mem3_shards table
This table sees a great deal of activity from various subsystems -
turning on read_concurrency should be a win.
COUCHDB-2984
Project: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/commit/0b70afb7
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/tree/0b70afb7
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/diff/0b70afb7
Branch: refs/heads/master
Commit: 0b70afb7cc11f39e894a37211349e4444711facb
Parents: 130efcd
Author: Benjamin Anderson <b...@banjiewen.net>
Authored: Sat Apr 9 23:21:58 2016 -0700
Committer: Benjamin Anderson <b...@banjiewen.net>
Committed: Mon May 9 14:20:56 2016 -0700
----------------------------------------------------------------------
src/mem3_shards.erl | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/0b70afb7/src/mem3_shards.erl
----------------------------------------------------------------------
diff --git a/src/mem3_shards.erl b/src/mem3_shards.erl
index 224673f..8a1bb54 100644
--- a/src/mem3_shards.erl
+++ b/src/mem3_shards.erl
@@ -181,7 +181,13 @@ handle_config_terminate(_, _, _) ->
end).
init([]) ->
- ets:new(?SHARDS, [bag, protected, named_table, {keypos,#shard.dbname}]),
+ ets:new(?SHARDS, [
+ bag,
+ protected,
+ named_table,
+ {keypos,#shard.dbname},
+ {read_concurrency, true}
+ ]),
ets:new(?DBS, [set, protected, named_table]),
ets:new(?ATIMES, [ordered_set, protected, named_table]),
ok = config:listen_for_changes(?MODULE, nil),