2 X cpf fetch VS. 1 Cpmfetch 2 X cpf fetch VS. 1 Cpmfetch
 

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]

Main Menu

2 X cpf fetch VS. 1 Cpmfetch

Started by Infernal, January 06, 2008, 07:48:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Infernal

Question having 1 cpm fetch on a page for let's say latest that shows 10 pics and a cpm fetch that shows another 10 top rated
will this eat up more cpu then 1 cpm fetch that shows 20 pictures let's say mop rated ?

vuud

Quote from: Infernal on January 06, 2008, 07:48:33 PM
Question having 1 cpm fetch on a page for let's say latest that shows 10 pics and a cpm fetch that shows another 10 top rated
will this eat up more cpu then 1 cpm fetch that shows 20 pictures let's say mop rated ?

The short answers:

On the client CPU, no.
On the server CPU, not really if you use the same cpmfetch object... Don't create another.  Top rated uses a bit more horsepower than say a random 20 pictures...
On the database CPU, a little bit.  Basically you are executing two SQL statements...

The long answer:

Your second scenario uses more - but will this really make a difference operationally?  People get into a mind set of over optimization when the difference is so minimal to begin with...  I have seen though, in large galleries of say 20,000 photos or more some performance issues in top rated, etc, etc...  So the real answer is to run it and see how it works... If you have a normal gallery (less than a few thousand photos) I would be surprised if anything you did with CpmFetch caused an issue...

Hope this helps somewhat!
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Infernal

yes it does
well my real plan is out of the 36 pictures i have posted on my main page top rated http://www.add-fun.com
to get 12 latest additions and leave the rest top rated
i am asking this because i have had a big server cpu problem when i had random images allowed because i have 12000 pictures in my album it gets crawled a lot and i am around 7000 pics seen a day
i get 1200 uniques in the main page with the cpmfetch atm

so if i split them in to 12 latest additions and 24 top rated the server cpu shouldn't have to get worked up a lot more ?