speed up media library

Jeanne Darisca Akouemo asked on August 10, 2017 16:30

Jeanne Darisca Akouemo answered on August 10, 2017 16:25 Hi, i want to come back to the question posted before by Ayoub. The problem is not to speed up media library for end user. But to speed up media library in order to allow to administrator to configure images faster more faster in media library.

Image Text

As you can see on the image above, in my administration interface, when i have a lot of images in my mediaLibray it's take too long to load when i click on image. And it's take even too long when i try to swicth between folder. The screenshot below, is an example of dependencies that i have when i try to edit file in Media Libray. What i want it's a way to reduce that dependancies in other to speed up access and edition to files in Media library as this part is manage by Kentico.

Image Text

Recent Answers


Trevor Fayas answered on August 10, 2017 18:18

this may ultimately be a general performance issue, which can depend on a lot of items.

what is your hosting platform? sql ram and cpu availability? internet speed? are the images very large that it's having a hard time loading them in general? is it only slow the first times?

0 votesVote for this answer Mark as a Correct answer

Jeanne Darisca Akouemo answered on August 11, 2017 16:13

In this example, we have a folder with 111 images and for loading the page "Library_Edit_Files.aspx":

it takes 23 seconds there are 537 dependencies and they are all done in sequence This is approximatively 40ms per call which is not that long, but together its pretty intensive on the azure storage. The website is already a Premium P3 but the bottleneck seems to be about the network.

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on August 11, 2017 18:10

Ah so you are in azure, documentation specifically mentions this:

https://docs.kentico.com/k10/custom-development/working-with-physical-files-using-the-api/configuring-file-system-providers/configuring-azure-storage

"Storing too many files in one media library folder

Note that storing a large number of media files in a single folder can significantly affect the performance of user interface when editing files in the Media library application. The performance of the website, however, is not affected. See Media library limitations when storing files in an external storage for details."

This talks about:

"If your project is configured to store files in an external storage, for example Azure Blob Storage or Amazon S3, make sure that you structure the media files into a hierarchy of folders. Storing a large number of media files in a single folder can significantly affect the performance of your project when editing the files in the Media library application.

We recommend storing at most 100 files in a single media library folder. Once you reach the limit, make sure you create a structure that allows you to divide the files into multiple folders. The number of files in one folder directly affects the performance of the Media library user interface.

Additionally, the system's automatic clearing of files from the server-side cache does not work for files stored in an external storage. If you modify a media file, the website may still display the old version until the cache expires (unless you manually clear the application's cache). See also: Caching files and resources"

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.