Switch iterator scan width to macro
And 4 seems a more reasonable number than 1
This commit is contained in:
parent
7049aaf5ca
commit
afb28aa7d6
1 changed files with 2 additions and 1 deletions
|
@ -203,6 +203,7 @@
|
||||||
-define(WORKQUEUE_BACKLOG_TOLERANCE, 4).
|
-define(WORKQUEUE_BACKLOG_TOLERANCE, 4).
|
||||||
-define(COIN_SIDECOUNT, 5).
|
-define(COIN_SIDECOUNT, 5).
|
||||||
-define(SLOW_FETCH, 20000).
|
-define(SLOW_FETCH, 20000).
|
||||||
|
-define(ITERATOR_SCANWIDTH, 4).
|
||||||
|
|
||||||
-record(state, {manifest = [] :: list(),
|
-record(state, {manifest = [] :: list(),
|
||||||
manifest_sqn = 0 :: integer(),
|
manifest_sqn = 0 :: integer(),
|
||||||
|
@ -962,7 +963,7 @@ find_nextkey(QueryArray, StartKey, EndKey) ->
|
||||||
{null, null},
|
{null, null},
|
||||||
StartKey,
|
StartKey,
|
||||||
EndKey,
|
EndKey,
|
||||||
1).
|
?ITERATOR_SCANWIDTH).
|
||||||
|
|
||||||
find_nextkey(_QueryArray, LCnt, {null, null}, _StartKey, _EndKey, _Width)
|
find_nextkey(_QueryArray, LCnt, {null, null}, _StartKey, _EndKey, _Width)
|
||||||
when LCnt > ?MAX_LEVELS ->
|
when LCnt > ?MAX_LEVELS ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue