Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Henrik Fosgerau 2 posts 22 karma points
    Apr 20, 2012 @ 11:46
    Henrik Fosgerau
    0

    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!

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Apr 23, 2012 @ 09:39
    Jeroen Breuer
    0

    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

  • Sergio 73 posts 93 karma points
    May 09, 2012 @ 14:00
    Sergio
    0

    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.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    May 09, 2012 @ 14:01
    Jeroen Breuer
    0

    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

  • Sergio 73 posts 93 karma points
    May 09, 2012 @ 14:08
    Sergio
    0

    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?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    May 09, 2012 @ 14:10
    Jeroen Breuer
    0

    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

  • Sergio 73 posts 93 karma points
    May 09, 2012 @ 14:12
    Sergio
    0

    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 Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    May 09, 2012 @ 14:18
    Jeroen Breuer
    0

    I haven't tested the package on Azure (never used it before) so I don't know.

    Jeroen

  • Sergio 73 posts 93 karma points
    May 10, 2012 @ 11:40
    Sergio
    0

    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?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    May 10, 2012 @ 11:41
    Jeroen Breuer
    0

    Sorry I haven't seen that before. What happens if you select the images again. Does that work?

    Jeroen

  • Sergio 73 posts 93 karma points
    May 10, 2012 @ 11:42
    Sergio
    0

    I´m going to check this in another environment and I will tell you.

  • Sergio 73 posts 93 karma points
    May 10, 2012 @ 11:49
    Sergio
    0

    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.

  • Sergio 73 posts 93 karma points
    May 10, 2012 @ 13:06
    Sergio
    0

    Jeroen, the ID´s should be stored into the DataNVarchar or into DataNText column?

  • Sergio 73 posts 93 karma points
    May 11, 2012 @ 09:35
    Sergio
    0

    Updating the datatype directly into the database (from NVarchar to NText) it´s working again.

Please Sign in or register to post replies

Write your reply to:

Draft