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 filer pagination limit

Chris Luf51a6d8ba573
diff --git a/weed/filer2/filer_client_util.go b/weed/filer2/filer_client_util.go
index ff20f06c23..8cae55d90e 100644
--- a/weed/filer2/filer_client_util.go
+++ b/weed/filer2/filer_client_util.go
@@ -128,7 +128,7 @@ func ReadDirAllEntries(ctx context.Context, filerClient FilerClient, fullDirPath
err = filerClient.WithFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
- paginationLimit := 1024
+ paginationLimit := 1024 * 256
lastEntryName := ""
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go
index 7c86473cda..7c19cbe1d7 100644
--- a/weed/filesys/dir.go
+++ b/weed/filesys/dir.go
@@ -214,7 +214,7 @@ func (dir *Dir) ReadDirAll(ctx context.Context) (ret []fuse.Dirent, err error) {
err = dir.wfs.WithFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
- paginationLimit := 1024
+ paginationLimit := 1024 * 256
remaining := dir.wfs.option.DirListingLimit
lastEntryName := ""
diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.go
index feab11c79b..b0163ea10b 100644
--- a/weed/server/filer_grpc_server.go
+++ b/weed/server/filer_grpc_server.go
@@ -40,7 +40,7 @@ func (fs *FilerServer) ListEntries(ctx context.Context, req *filer_pb.ListEntrie
limit = fs.option.DirListingLimit
}
- paginationLimit := 1024
+ paginationLimit := 1024 * 256
if limit < paginationLimit {
paginationLimit = limit
}