Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance of MediaSubfolderCounter class in Umbraco #85

Open
darrenferguson opened this issue Jun 20, 2017 · 0 comments
Open

Performance of MediaSubfolderCounter class in Umbraco #85

darrenferguson opened this issue Jun 20, 2017 · 0 comments

Comments

@darrenferguson
Copy link

Related: http://issues.umbraco.org/issue/U4-10041

We have an Umbraco site with > 250k media items. The media is stored in Azure Blob storage using this package.

In order to get a numeric ID for the folder to store an Umbraco media item in - Umbraco uses the MediaSubfolderCounter class to retrieve an ID. This calls the underlying file system provider to list all folders in the media folder, find the highest numbered folder and then increment to get the value for the new folder.

The read of 250k "folders" from blob takes more than a minute. This will slow down with time.

In addition, reading the folder list into memory even with a local filesystem is likely to be memory inefficient and take longer as the media library grows even with the local file system provider.

I appreciate that this in issue with Umbraco and have raised an issue on their tracker also.

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

No branches or pull requests

1 participant