coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: jp-photo.dk on October 26, 2006, 10:23:15 AM

Title: Slow queries on 1.4.3
Post by: jp-photo.dk on October 26, 2006, 10:23:15 AM
I'm experiencing very slow load-times for my pages in the gallery (http://galleri.jp-photo.dk) [edit GauGau] Warning: Link not worksafe! [/edit]. The mainpage loads in about 24 seconds - that is the time to generate the page, so the problem should not be located with the bandwidth etc.

Could it be a missing index on some of the tables? I'll try to look into this myself when I get home..

I've attached the debug-info, and it's obvious where the time is spent..

USER:
------------------
Array
(
    [ID] => 39a1c28a1fc0e74576361c603e02e02c
    [am] => 1
    [liv] => Array
        (
           
Title: Re: Slow queries on 1.4.3
Post by: Joachim Müller on October 26, 2006, 07:11:08 PM
Your site is outdated (cpg1.4.3), it's mandatory to upgrade (as suggested in the docs), most recent version currently is cpg1.4.9.
Try removing the "most viewed" meta album and see if this reduces your query time significantly.

In the future, when posting links to your site, make sure to post a warning with it that it is not worksafe! Modified your posting accordingly.

Joachim
Title: Re: Slow queries on 1.4.3
Post by: jp-photo.dk on October 28, 2006, 11:40:28 PM
Oh yes, sorry about leaving out the warning, I didn't think of it.

Before upgrading to cpg1.4.9 i removed the "most viewed" and this reduced the time somewhat. Also I optimized the configuration of Mysql and this helped some too.

After the upgrade to cpg1.4.9 the query time stayed the same and is quite acceptable.

The final problem with loadtimes is with the filesizes of the thumbnails, but that question should belong in the upload-category of the forum I believe.

Thank you very much for your help.

Regards,
Jan