Skip to content

Commit

Permalink
change batch size (#5550)
Browse files Browse the repository at this point in the history
* change batch size

* add flag to config
  • Loading branch information
nevermore3 authored May 15, 2023
1 parent 785c46a commit 82ddbc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions conf/nebula-graphd.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,5 @@
--min_batch_size=8192
# if true, return directly without go through RPC
--optimize_appendvertices=false
# number of paths constructed by each thread
--path_batch_size=10000
2 changes: 2 additions & 0 deletions conf/nebula-graphd.conf.production
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,5 @@
--min_batch_size=8192
# if true, return directly without go through RPC
--optimize_appendvertices=false
# number of paths constructed by each thread
--path_batch_size=10000
2 changes: 1 addition & 1 deletion src/graph/executor/algo/AllPathsExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ DEFINE_uint32(
100,
"the number of vids to expand, when this threshold is exceeded, use heuristic expansion");
DEFINE_uint32(path_threshold_ratio, 2, "threshold for heuristics expansion");
DEFINE_uint32(path_batch_size, 50000, "number of paths constructed by each thread");
DEFINE_uint32(path_batch_size, 10000, "number of paths constructed by each thread");

namespace nebula {
namespace graph {
Expand Down

0 comments on commit 82ddbc0

Please sign in to comment.