• Resolved Exxodos

    (@exxodos)


    Currently I’m porting a webzine to wordpress, using the NGG plugin for the huge gallery with about 9000 images in more than 350 gallerys. These gallerys are categorized in years (= albums) and it takes very long time to do it.

    Accessing the “manage-album” page, all galleries are loaded in the middle (“choose gallery”), and when I want to add them to an album, it takes about 30 to 45 seconds after clicking on them, until I can drag and drop them to the album I want to allocate it to.

    So the question is: How can that be speed up or optimized, because there will be hundreds of more gallerys, and in that way I see no chance to use NGG… =(

    I guess the problem is, that all galleries are loaded in the “choose gallery” section, even those which are already allocated to an album, what causes quite a load.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Exxodos

    (@exxodos)

    I hate pushing, but this problem prevents the release of the new webzine…

    Am I the only one with this problem?

    I can give you one first possible solution :
    Check this bugfix : https://code.google.com/p/nextgen-gallery/source/detail?r=570

    I forgot that people really uses already more than 100 images :-), so I need to rewrite some parts of the plugin to fit for your amount of images.

    I have no clue how I should display more than 50 galleries to manage them with the drag & drop feature. I will need more time to get a better way for such a amount of images

    Thread Starter Exxodos

    (@exxodos)

    Hey and thank you for your reply.
    The bugfix improves it a little, but it is still quite a time to wait…

    I made a video about the problem: https://i8t.de/dfo2ddy0

    I guess the images aren’t the problem, but the already allocated gallerys which are still loaded in the middle…

    Perhaps there is a way to limit the loaded gallerys, so that only the not-allocated are loaded?

    Btw, sorry for my crappy english, if you don’t understand it, I can post also in german – but then most of the other users won’t understand, i guess…

    Thread Starter Exxodos

    (@exxodos)

    Okay, I got a solution. The cause of the problems is the large amount of preview pictures listed and generated (in my case about 4,5MB!).

    So all I needed to do was, to comment five lines in the album.php out, and now I’ve got delays of less than a second.

    Solution
    Open ../admin/album.php, find

    if ($album->previewpic > 0)
    $image = $nggdb->find_image( $album->previewpic );
    $preview_image = ($image->thumbURL) ? '<div class="inlinepicture"><img src="' . $image->thumbURL . '" /></div>' : '';

    and put it into /* */

    next, find

    $image = $nggdb->find_image( $gallery->previewpic );
    $preview_image = ($image->thumbURL) ? '<div class="inlinepicture"><img src="' . $image->thumbURL . '" /></div>' : '';

    and do the same.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Gallery] Sorting Albums – unbelievable slow’ is closed to new replies.