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


##########
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:
   The merging does not start up when there is only one segment. 
   
   Our design goal is to leverage the normal merging process when there are 
multiple segments (more than one). If only one segment exists, I am fine with 
leaving the deleted files within it.



-- 
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