coppermine-gallery.com/forum

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: Outlaw Photos on August 17, 2023, 01:34:52 AM

Title: How big is to big ..
Post by: Outlaw Photos on August 17, 2023, 01:34:52 AM
Our gallery is getting old with lots of photos and now getting real slow loading is can your gallery get to big?
Title: Re: How big is to big ..
Post by: 406man on August 18, 2023, 09:16:44 AM
Some information about the gallery would help answer your question. How many photos in total ? Which version of Coppermine ? What is the operation that's slow ?
Title: Re: How big is to big ..
Post by: Outlaw Photos on August 18, 2023, 08:32:10 PM
version 1.6.25   as it shows .. 
  stats...   513,069 files in 11,634 albums and 722 categories with 1 comments viewed 8,172,977 times   

    Location..   https://www.dirttrackdigest.com/gallery7

    the page load is very slow..       It's been a great Gallery..  just wondering if it's become to big? 
Title: Re: How big is to big ..
Post by: ron4mac on August 18, 2023, 09:56:16 PM
You could try this caching plugin (https://forum.coppermine-gallery.net/index.php/topic,80231.0.html).
Title: Re: How big is to big ..
Post by: 406man on August 20, 2023, 03:11:29 PM
I took a look at the site - it's a very impressive archive of dirt track racing pictures and it certainly is large. The home page took a long time to load for me too. When I accessed individual albums – for example Race Week Ending 8/13/23 - the performance was fine when displaying that album. That says to me that the system basically is fine. I believe that the slow performance is caused by the amount of material that has to be accessed to create the home page.

The question then moves to what should be removed to speed it up ? With 8 weeks of racing pictures in weekly time order the viewer can figure the site out pretty quickly so the Random Files and Last Additions sections could be chopped out.

An impressive part of the site is the archive of pictures going back to 2011. The downside of this is that to create the totals of numbers of albums and pictures requires multiple large database reads right through the database. The system does one large read operation for each year.  I recommend you re-structure the years under a couple of new headings, for example: "Racing 2020-2022" and "Racing 2011-2019"  instead of each year listed individually. Or even a single heading "Racing Archive (2011-2022)". Once this is done, if you have a single heading the large database read operation only has to be done once for the home page instead of 13 times ! You could also reduce the 8 weekly albums of pictures to 5 or 6.
Title: Re: How big is to big ..
Post by: Joe Carver on August 21, 2023, 07:21:35 PM
Quote from: 406man on August 20, 2023, 03:11:29 PM
....so the Random Files and Last Additions sections could be chopped out.

Good suggestions, especially on Random with the large set to select from.

In Config >> Maintenance Settings, enable debug to see how long each query to the db is taking.

(Great site, it looks like a lot of fun out there!)
Title: Re: How big is to big ..
Post by: Outlaw Photos on August 21, 2023, 09:10:28 PM
Quote from: ron4mac on August 18, 2023, 09:56:16 PM
You could try this caching plugin (https://forum.coppermine-gallery.net/index.php/topic,80231.0.html).

I think we already did that as it shows in the theme.. 
Title: Re: How big is to big ..
Post by: Outlaw Photos on August 21, 2023, 09:12:50 PM
Quote from: 406man on August 20, 2023, 03:11:29 PM
I took a look at the site - it's a very impressive archive of dirt track racing pictures and it certainly is large. The home page took a long time to load for me too. When I accessed individual albums – for example Race Week Ending 8/13/23 - the performance was fine when displaying that album. That says to me that the system basically is fine. I believe that the slow performance is caused by the amount of material that has to be accessed to create the home page.

The question then moves to what should be removed to speed it up ? With 8 weeks of racing pictures in weekly time order the viewer can figure the site out pretty quickly so the Random Files and Last Additions sections could be chopped out.

An impressive part of the site is the archive of pictures going back to 2011. The downside of this is that to create the totals of numbers of albums and pictures requires multiple large database reads right through the database. The system does one large read operation for each year.  I recommend you re-structure the years under a couple of new headings, for example: "Racing 2020-2022" and "Racing 2011-2019"  instead of each year listed individually. Or even a single heading "Racing Archive (2011-2022)". Once this is done, if you have a single heading the large database read operation only has to be done once for the home page instead of 13 times ! You could also reduce the 8 weekly albums of pictures to 5 or 6.

  I've cut down the year groups to 3.  I'll give it a shot with clipping the number of gallery's displayed and see if that helps as well ..thanks for the help.. 
Title: Re: How big is to big ..
Post by: Outlaw Photos on August 21, 2023, 09:19:27 PM
Quote from: Joe Carver on August 21, 2023, 07:21:35 PM
Good suggestions, especially on Random with the large set to select from.

In Config >> Maintenance Settings, enable debug to see how long each query to the db is taking.

(Great site, it looks like a lot of fun out there!)

Queries:
------------------
Array
(
   
Title: Re: How big is to big ..
Post by: ron4mac on August 23, 2023, 05:21:32 PM
Quote from: Outlaw Photos on August 21, 2023, 09:10:28 PM
I think we already did that as it shows in the theme..
I am quite sure that, if correctly installed and configured, the theme caching plugin would make public (not logged in) loading of your site much quicker with a much lower volume of database activity.
It only functions with public/guest access (can not be logged in).