Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Making Nuke Efficient
Author Message
perfect-games
Regular
Regular



Joined: Oct 28, 2004
Posts: 84

PostPosted: Sat Mar 05, 2005 8:16 pm Reply with quote

hi guys well working on version 4 of my phpnuke distro so far i managed to get the queries down quite low and i have not even added cache yet
but php still showing on the high side what would you reccomened to lower the sql usage on my server
[ Script generation time: 0.361s (PHP: 70% - SQL: 30%) ] - [ SQL queries: 32 ] - [ Pages served in past 5 minutes : 21 ] - [ GZIP disabled ] - [ Debug off ]

thanks
steve
 
View user's profile Send private message
perfect-games







PostPosted: Sat Mar 05, 2005 8:20 pm Reply with quote

if i remove all the db files not needed like msaccess, odbc etc would this help imrove performance, is there anything else i can do to get loads of speed, as i want to speed this distro up before i add the hacks to it
thanks
steve
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Mar 06, 2005 1:29 am Reply with quote

Removing files has ZERO impact on nuke's performance Smile
 
View user's profile Send private message
perfect-games







PostPosted: Sun Mar 06, 2005 8:23 am Reply with quote

i have rewrote most of the sql layer, but as you have experienced chache on nuke whats the best to go for as i want to include this in the distro,
i already have gt nextgt admin panel, meta in admin panel , trying to make this easier for everone to use
thanks
steve
 
perfect-games







PostPosted: Sun Mar 06, 2005 8:28 am Reply with quote

whats the main parts of nuke i should look at for speed, i have removed all lang except english, it seems the biggest impact on nuke is the blocks without them its so low like close to 10 queries would cache sort this problem out, i was thinking if there is a good cache so when users install my ditro there wont be much work for them to do,
as jpcache you have to give the full url of the includes home/username/hhtp_public/includes is there an better way of doing this so it will work straight out of the box with out having the full url
 
djmaze
Subject Matter Expert



Joined: May 15, 2004
Posts: 727
Location: http://tinyurl.com/5z8dmv

PostPosted: Tue Mar 08, 2005 4:20 pm Reply with quote

There are several ways to reduce SQL load by merging queries and other stuff.
The disadvantages could be slow queries or high memory usage.

The trick is to find the best solution for each individual module/file.
Biggest query eaters are is_admin() and is_user() as explained by steven111, someone i forgot name of and me on nukecops.com after a discussion about duplicate/re-occuring queries.

A good cache system also speeds up your system, but be carefull since it also eats more memory in PHP itself.

The best way to find out, is to list all queries each page calls.
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Making Nuke Efficient

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©