mrproliu commented on code in PR #684:
URL: 
https://github.com/apache/skywalking-banyandb/pull/684#discussion_r2153336577


##########
banyand/property/shard.go:
##########
@@ -80,11 +80,12 @@ func (db *database) newShard(ctx context.Context, id 
common.ShardID, _ int64) (*
                location: location,
        }
        opts := inverted.StoreOpts{
-               Path:                 location,
-               Logger:               si.l,
-               Metrics:              
inverted.NewMetrics(db.omr.With(propertyScope.ConstLabels(meter.LabelPairs{"shard":
 sName}))),
-               BatchWaitSec:         0,
-               PrepareMergeCallback: si.prepareForMerge,
+               Path:                        location,
+               Logger:                      si.l,
+               Metrics:                     
inverted.NewMetrics(db.omr.With(propertyScope.ConstLabels(meter.LabelPairs{"shard":
 sName}))),
+               BatchWaitSec:                0,
+               PrepareMergeCallback:        si.prepareForMerge,
+               MinSegmentsForInMemoryMerge: 1,

Review Comment:
   I will deleted after the testing finished. 



##########
banyand/property/shard.go:
##########
@@ -80,11 +80,12 @@ func (db *database) newShard(ctx context.Context, id 
common.ShardID, _ int64) (*
                location: location,
        }
        opts := inverted.StoreOpts{
-               Path:                 location,
-               Logger:               si.l,
-               Metrics:              
inverted.NewMetrics(db.omr.With(propertyScope.ConstLabels(meter.LabelPairs{"shard":
 sName}))),
-               BatchWaitSec:         0,
-               PrepareMergeCallback: si.prepareForMerge,
+               Path:                        location,
+               Logger:                      si.l,
+               Metrics:                     
inverted.NewMetrics(db.omr.With(propertyScope.ConstLabels(meter.LabelPairs{"shard":
 sName}))),
+               BatchWaitSec:                0,
+               PrepareMergeCallback:        si.prepareForMerge,
+               MinSegmentsForInMemoryMerge: 1,

Review Comment:
   I will deleted it after the testing finished. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to