Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Make coppermine a performance monster, remove all count/stat queries  (Read 1677 times)

0 Members and 1 Guest are viewing this topic.

net

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88

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:

Code: [Select]
    [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?

Code: [Select]
[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]
Logged

net

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: Make coppermine a performance monster, remove all count/stat queries
« Reply #1 on: August 20, 2008, 03:46:34 pm »

sorry ofcourse i ment functions.inc.php
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.