Listing thumbnails in back end slows down the server
DAMP is a great package and I use it a lot, but unfortunately I have an issue which causes a great deal of frustration.
Some of my pages contain a lot of large images, picked by DAMP. When loading these pages in Umbraco BE, it takes a long time to show the page's tabs and content (sometimes 10-20 seconds) - apparently because the DAMP Data Type on these pages works very hard on scaling the original images for thumbnails every time the page is requested in BE.
This is a new feature which is added to DAMP 2.0. In DAMP 1.0 we displayed the default thumbnail image, but in DAMP 2.0 we have a lot more options to show thumbnails (for example a cropped preview). The easiest solution is not to use large images. You probably won't use those in your website anyway or else that would be slow too. Anothter solution would be download the source code and change it there. You could also use ImageGen for this which has better caching. We didn't use it because we didn't want to be depended from any other packages.
Is it always the first time you open the modal to select media or after the app restarted? The page is slower after app restart, but is faster after that.
It seems after the app restarted but I don´t know exactly how this it´s working because some minutes ago it was working much slower than now, even each time I opened the modal.
Now it´s working really fast even if I close all navigators and log in a new session.
About app restarts, do you know exactly when this happens?
App restarts depends on the hosting. At the company where I work we restart the app every night. If you're developing each time you add new dll files to the bin folder the app also restarts.
Our problem seems different because now I have tried again and it took about 20 seconds. Our hosting is Windows Azure with 2 Web Servers. Do you know any incompatibility with Azure in this sense?
Jeroen, I have updated the Umbraco release version (4.7.2) and now in the content section I can´t see the media items which are stored in the properties. In the public view the images are displayed correctly.
I have checked into the database and the ID´s are stored in the DataNText column (cmsPropertyData).
I send you an image about what I mean.
The properties: phphotothumbanil, phphoto1 and phfotogrande1 should be showing images.
Listing thumbnails in back end slows down the server
DAMP is a great package and I use it a lot, but unfortunately I have an issue which causes a great deal of frustration.
Some of my pages contain a lot of large images, picked by DAMP.
When loading these pages in Umbraco BE, it takes a long time to show the page's tabs and content (sometimes 10-20 seconds) - apparently because the DAMP Data Type on these pages works very hard on scaling the original images for thumbnails every time the page is requested in BE.
The thumbnails's paths are similar to this:
/umbraco/plugins/DigibizAdvancedMediaPicker/DAMP_ImagePreview.ashx?img=/media/1234/imagefile.jpg&w=100&h=66&uId=634705188772420768&fallback=/media/1234/imagefile.jpg
Is my site's DAMP misconfigured?
Anybody know some kind of workaround?
Is it possible to disable thumbnails temporarily?
Thanks!
This is a new feature which is added to DAMP 2.0. In DAMP 1.0 we displayed the default thumbnail image, but in DAMP 2.0 we have a lot more options to show thumbnails (for example a cropped preview). The easiest solution is not to use large images. You probably won't use those in your website anyway or else that would be slow too. Anothter solution would be download the source code and change it there. You could also use ImageGen for this which has better caching. We didn't use it because we didn't want to be depended from any other packages.
Jeroen
Hi Jeroen,
What do you mean with large images? We have the same problem and our thumbnail images have about 7Kbs.
But I´m noticing the slow performance it´s only in the first charge. Later everything load really fast.
Is it always the first time you open the modal to select media or after the app restarted? The page is slower after app restart, but is faster after that.
Jeroen
It seems after the app restarted but I don´t know exactly how this it´s working because some minutes ago it was working much slower than now, even each time I opened the modal.
Now it´s working really fast even if I close all navigators and log in a new session.
About app restarts, do you know exactly when this happens?
App restarts depends on the hosting. At the company where I work we restart the app every night. If you're developing each time you add new dll files to the bin folder the app also restarts.
Jeroen
Our problem seems different because now I have tried again and it took about 20 seconds. Our hosting is Windows Azure with 2 Web Servers. Do you know any incompatibility with Azure in this sense?
I haven't tested the package on Azure (never used it before) so I don't know.
Jeroen
Jeroen, I have updated the Umbraco release version (4.7.2) and now in the content section I can´t see the media items which are stored in the properties. In the public view the images are displayed correctly.
I have checked into the database and the ID´s are stored in the DataNText column (cmsPropertyData).
I send you an image about what I mean.
The properties: phphotothumbanil, phphoto1 and phfotogrande1 should be showing images.
Any idea about what´s happening?
Sorry I haven't seen that before. What happens if you select the images again. Does that work?
Jeroen
I´m going to check this in another environment and I will tell you.
The ID it´s been stored into the dataNVarchar property. Now the images appears in the content section but not in the public view.
We´re using Damp Classic.
Jeroen, the ID´s should be stored into the DataNVarchar or into DataNText column?
Updating the datatype directly into the database (from NVarchar to NText) it´s working again.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.