Huge gallery

Hello again.

I have a gallery with over 86K images with 9 main categories. Whenever I go into the admin section and click on the Album tab it takes about 5-10 minutes for the website to finish loading those 9 items. It seems like it is loading ALL the files instead of just those main folders. It pretty much makes the Album tab useless to edit or move files around.

Can someone explain what goes behind the scenes with the Album tab? Perhaps someone can fix this for the next release? :)

Thanks again you guys have a great piece of software!

Useful info
----------
86586 Images
2455 Albums

Zenphoto version 1.4.2.4 [10045] (Official Build)
Current locale setting: English_United States.1252
PHP version: 5.4.4
Graphics support: PHP GD library bundled (2.0.34 compatible)
PHP memory limit: 3G
MySql version: 5.5.25

Comments

  • acrylian Administrator, Developer
    Disable the random thumbnail selection is the foremost thing you should do. Otherwise Zenphoto will pick one randomly for every album displayed and if that is not cached and you also have huge dimension images it has a lot to do at one time.

    Also disable showing more than one album level and possibly reduce the number of top level albums.

    If you search the forum a little you find probably older topics about this.
  • qb84 Member
    I have it set to pick up the first thumbnail it finds and only one album level.

    That's why I'm confused as to why it takes so long. I would understand if it was showing ALL the files but it only shows the main 9 albums. (at least on the main Album screen). Every time I click on an album I have to shutdown Apache because it keeps on going and going and..... :). So for now I'm doing all the changes on the actual folders instead of using the Album tab.
  • acrylian Administrator, Developer
    You really should pick a specific album thumbnail, not the latest.
  • qb84 Member
    the first one (filename), not latest. And how would I pick it if I can't load Album page?

    Anyway I searched the forums and commenting out the genAlbumUploadList() function seems to help a lot.

    http://www.zenphoto.org/support/topic.php?id=10369

    Thank you :)
  • acrylian Administrator, Developer
    You can access actually each album directly via the admin toolbox from the front end. So you don't need the album list.

    I have to consult my colleague about what this function is doing as I am not familiar with those parts right now.
  • That function has no direct bearing on the thumbnails. As the topic says, it is used in the move/copy/rename feature. Not sure why this would take so much time. Mostly it is instantiating an object and checking rights to see if you are allowed to access the album.
  • qb84 Member
    There's definitively something wrong with that function as it works great without it :). (At least with large galleries). Everything seems to be working smooth now, hopefully you guys can figure out what's up in the next version.
Sign In or Register to comment.