Page 1 of 1

500 + Queries Logged in phoca gallery page

Posted: 17 Apr 2012, 15:07
by arunoid
i have 500+ gallery Categories with phoca gallery.

when i debug the phoca gallery page i noticed that 500+ queries requesting from the database. will these one of the reason for my server cpu and sql loading?

Re: 500 + Queries Logged in phoca gallery page

Posted: 19 Apr 2012, 17:35
by Jan
Hi, really don't know the place where sql will be loaded for every category? Do you use some other extensions which are using the gallery? Can you paste more details here?

Re: 500 + Queries Logged in phoca gallery page

Posted: 19 Apr 2012, 20:16
by arunoid

Re: 500 + Queries Logged in phoca gallery page

Posted: 26 Apr 2012, 14:05
by Jan
Not sure, but try to do the following:

Got to administration - Phoca Gallery - Settings.

In Settings, see Categories View Settings - Categories Image Ordering: Special (set Special)

(in case your gallery contains a lot of categories, this saves access queries for all the categories)

Jan

Re: 500 + Queries Logged in phoca gallery page

Posted: 05 Jun 2012, 01:15
by Ansolon
it is happening Front page of Gallery Page

I also have 700 categories. But just 2 main categories at this time.

It opens just 2 main categories. However it queries all categories.

After I did what you told JAn query decrease 670 to 50 its very good for frontpage gallery.

Just Thumbnails become directory which we can change I Ithink?

Re: 500 + Queries Logged in phoca gallery page

Posted: 06 Jun 2012, 16:52
by Jan
Hi, reducing the queries means, the ordering of category will be taken from main sql query - this will reduce the memory but you cannot order it e.g. by random, etc.

Jan