diff --git a/S3-Gateway-FAQ.md b/S3-Gateway-FAQ.md index f13205d..7455f58 100644 --- a/S3-Gateway-FAQ.md +++ b/S3-Gateway-FAQ.md @@ -22,3 +22,14 @@ There are 2 ways to fix this. This will add 1 physical volume when existing volumes are full. If using replication, you will need to add more volumes. See https://github.com/chrislusf/seaweedfs/wiki/Path-Specific-Configuration + + +## How to speed up bucket deletion? + +One common unexpected problem is the deletion can be slow. To delete a file, we need to delete the file content on the volume servers and delete the file entry from the filer store. It is almost the same amount of work as adding a file. If there are millions of times, it can take a long time to delete. + +If you need to create large buckets and delete them often, you may choose `leveldb3` as the filer store. + +`leveldb3` can automatically create a separate LevelDB instance for each bucket. +So bucket deletion is as simple as deleting the LevelDB instance files and the collection of volume files. +