Make coppermine a performance monster, remove all count/stat queries Make coppermine a performance monster, remove all count/stat queries
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Make coppermine a performance monster, remove all count/stat queries

Started by net, August 20, 2008, 03:37:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

net

Hi,

I'm trying to setup coppermine to use as little features as possible (read sql) i would like to remove all counts, statistics (queries) also order by. I've found most of them in include.inc.php however there are some queries i cannot find!

First:

    [11] => SELECT user_favpics FROM test_favpics WHERE user_id = 1 (0s)

Also there is a query (don't know which one) but it gathers all category statistics, which slows down the gallery greatly when you have many categories with alot of albums in them.

Im guessing it might be this query?

[15] => SELECT count(*) FROM test_pictures as p, test_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 140 (0s)[code]

Any help or a kick in right direction is appreciated, thanks guys.
[/code]

net