vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   VB 4.2.1 Slow Heres Cause - What Is It? (https://vborg.vbsupport.ru/showthread.php?t=302685)

keyla31 09-26-2013 03:26 PM

VB 4.2.1 Slow Heres Cause - What Is It?
 
My server guy sent me this has the main thing running in vbulletin slowing my site down, but i dont know what it is, please advise:

Copying to tmp table | SELECT
IF(a.votenum >= 1, a.votenum, 0) AS votenum,
IF(a.votenum >= 1 AND a.votenum > 0, a.votetotal / a.votenum, 0) AS voteavg,
a.*, fd.extension AS extension, IF(r.attachrateid >= 1, 1, 0) AS hasvoted,
p.title AS posttitle, p.postid, u.username, p.threadid, t.title AS threadtitle, b.title AS blogtitle, b.blogid
FROM attachment AS a
LEFT JOIN post AS p
ON (a.contenttypeid = 1 AND a.contentid = p.postid)
LEFT JOIN user AS u
ON (a.userid = u.userid)
LEFT JOIN thread AS t
ON (a.contenttypeid = 1 AND p.threadid = t.threadid)
LEFT JOIN blog AS b
ON (a.contenttypeid = 15 AND a.contentid = b.blogid)
LEFT JOIN filedata AS fd
ON (fd.filedataid = a.filedataid)
LEFT JOIN attachrate AS r
ON (a.attachmentid = r.attachid AND r.userid = '0')
WHERE fd.extension IS NOT NULL

AND (t.forumid IN (118,119,120,7,71,72,73,155,156,6,117,31,154) OR a.contenttypeid != 1)

ORDER BY voteavg DESC, a.attachmentid DESC
LIMIT 5050, 50 |

--------------- Added [DATE]1380217373[/DATE] at [TIME]1380217373[/TIME] ---------------

FOUND it, its the attachment gallery mod i put on there, it slows down the site dramatically.

ForceHSS 09-26-2013 03:59 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=259302" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=259302</a>


All times are GMT. The time now is 04:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01736 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete