PDA

View Full Version : server help


leejohn02
11-18-2011, 05:02 AM
a lot of my members had trouble on the site over the past day, i was told its due to the high volume of traffic and the account i have been told is generating slow queries, this is the queries i got sent

Executed 178 min ago for 5 sec on Database --> unknown.
SELECT pointslog.*, user.userid, username, user.usergroupid, infractiongroupid, displaygroupid FROM dbtech_vbactivity_pointslog AS pointslog LEFT JOIN dbtech_vbactivity_type AS type ON (type.typeid = pointslog.typeid) LEFT JOIN user AS user ON (user.userid = pointslog.userid) LEFT JOIN usergroup AS usergroup ON (usergroup.usergroupid = user.usergroupid) WHERE (type.display & 2) AND user.dbtech_vbactivity_excluded = '0' AND NOT FIND_IN_SET(19, user.membergroupids) AND NOT FIND_IN_SET(8, user.membergroupids) AND user.usergroupid NOT IN(19,8) ORDER BY dateline DESC LIMIT 4860, 20
Executed 161 min ago for 4 sec on Database --> unknown.
SELECT pointslog.*, user.userid, username, user.usergroupid, infractiongroupid, displaygroupid FROM dbtech_vbactivity_pointslog AS pointslog LEFT JOIN dbtech_vbactivity_type AS type ON (type.typeid = pointslog.typeid) LEFT JOIN user AS user ON (user.userid = pointslog.userid) LEFT JOIN usergroup AS usergroup ON (usergroup.usergroupid = user.usergroupid) WHERE (type.display & 2) AND user.dbtech_vbactivity_excluded = '0' AND NOT FIND_IN_SET(19, user.membergroupids) AND NOT FIND_IN_SET(8, user.membergroupids) AND user.usergroupid NOT IN(19,8) ORDER BY dateline DESC LIMIT 4840, 20
Executed 161 min ago for 2 sec on Database --> unknown.
SELECT userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, language.phrasegroup_global AS phrasegroup_global, language.phrasegroup_fronthelp AS phrasegroup_fronthelp, language.phrasegroup_register AS phrasegroup_register, language.phrasegroupinfo AS lang_phrasegroupinfo, language.options AS lang_options, language.languagecode AS lang_code, language.charset AS lang_charset, language.locale AS lang_locale, language.imagesoverride AS lang_imagesoverride, language.dateoverride AS lang_dateoverride, language.timeoverride AS lang_timeoverride, language.registereddateoverride AS lang_registereddateoverride, language.calformat1override AS lang_calformat1override, language.calformat2override AS lang_calformat2override, language.logdateoverride AS lang_logdateoverride, language.decimalsep AS lang_decimalsep, language.thousandsep AS lang_thousandsep FROM user AS user LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid) LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid)) WHERE user.userid = 66
Executed 138 min ago for 5 sec on Database --> unknown.
SELECT pointslog.*, user.userid, username, user.usergroupid, infractiongroupid, displaygroupid FROM dbtech_vbactivity_pointslog AS pointslog LEFT JOIN dbtech_vbactivity_type AS type ON (type.typeid = pointslog.typeid) LEFT JOIN user AS user ON (user.userid = pointslog.userid) LEFT JOIN usergroup AS usergroup ON (usergroup.usergroupid = user.usergroupid) WHERE (type.display & 2) AND user.dbtech_vbactivity_excluded = '0' AND NOT FIND_IN_SET(19, user.membergroupids) AND NOT FIND_IN_SET(8, user.membergroupids) AND user.usergroupid NOT IN(19,8) ORDER BY dateline DESC LIMIT 12840, 20

how do i fix slow queries or can someone help me reduce them, thanks

HMBeaty
11-18-2011, 05:05 AM
That's something that would probably be better to post here for George (https://www.vbulletin.com/forum/member.php/245-eva2000) to help you out with. :)

https://www.vbulletin.com/forum/forumdisplay.php/14-Server-Configuration