Skip to content

Conversation

Ochita
Copy link
Contributor

@Ochita Ochita commented May 11, 2025

What problem are we solving?

Mongodb filer not supported ListDirectoryPrefixedEntries method on database level, which will work faster on folders with hight files count.

How are we solving the problem?

Implemented ListDirectoryPrefixedEntries using mongodb regex search. Regex search by prefix uses index while executed, so searching time is ok.

How is the PR tested?

Run local aio deployment with mongodb filer store setted up. Confirm same beheviour with prefixFilterEntries version (when err ErrUnsupportedListDirectoryPrefixed raised)

Checks

  • I have added unit tests if possible.
  • I will add related wiki document changes and link to this PR after merging.

@chrislusf chrislusf merged commit 9c1048b into seaweedfs:master May 11, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants