Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

increase batch deletion size to 1024

Chris Lu251b596bc535
diff --git a/weed/filesys/wfs_deletion.go b/weed/filesys/wfs_deletion.go
index c2fcb4f7a8..45eb683971 100644
--- a/weed/filesys/wfs_deletion.go
+++ b/weed/filesys/wfs_deletion.go
@@ -18,7 +18,7 @@ func (wfs *WFS) loopProcessingDeletion() {
select {
case fids := <-wfs.fileIdsDeletionChan:
fileIds = append(fileIds, fids...)
- if len(fileIds) >= 256 {
+ if len(fileIds) >= 1024 {
glog.V(1).Infof("deleting fileIds len=%d", len(fileIds))
deleteFileIds(context.Background(), client, fileIds)
fileIds = fileIds[:0]