Thread: Major Additions - vBExperience 4
View Single Post
  #2268  
Old 01-28-2012, 10:03 PM
slinky slinky is offline
 
Join Date: Dec 2001
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was wondering if there is any way to cut down on this incredible plugin being the resource hog that it is. It's practically 1/3 the size of the entire vBulletin database. That itself is of concern. I don't really need all the daily feeds, etc. who did what, etc. They just need a few toplists and that's all. Those can and should be cached and can be updated daily and would be fine (e.g. "List as of xx/yy/zzzz).

But here's a larger issue. I started to log slow queries and this is what I saw - not even what I expected. The first two queries have been shown several times in the list. Perhaps we can put together a practices list for minimizing resources using this plugin? If it was already done, would someone be able to point me to it? Many thanks - here's my data:

# Query_time: 5 Lock_time: 0 Rows_sent: 1 Rows_examined: 664253
use mysite_mysitedb;
SELECT
COUNT(*) AS cnt_ach,
i.achievementid,
a.title,
a.description,
a.imagebig
FROM xperience_achievements_issues AS i
INNER JOIN xperience_achievements AS a ON a.achievementid=i.achievementid
GROUP BY achievementid
ORDER BY COUNT(*) DESC
LIMIT 1;
# Time: 120128 14:34:46
# User@Host: mysite_myaccount[mysite_myaccount] @ [123.123.123.123]
# Query_time: 5 Lock_time: 0 Rows_sent: 1 Rows_examined: 664253
SELECT
COUNT(*) AS cnt_ach,
i.achievementid,
a.title,
a.description,
a.imagebig
FROM xperience_achievements_issues AS i
INNER JOIN xperience_achievements AS a ON a.achievementid=i.achievementid
GROUP BY achievementid
ORDER BY COUNT(*) ASC
LIMIT 1;
# Time: 120128 15:05:40
# User@Host: mysite_myaccount[mysite_myaccount] @ [123.123.123.123]
# Query_time: 5 Lock_time: 0 Rows_sent: 17 Rows_examined: 17
SELECT *
FROM datastore
WHERE title IN ('smiliecache','bbcodecache','mailqueue','bookmark sitecache','options','bitfield s','attachmentcache','forumcache','usergroupcache' ,'stylecache','languagecache', 'products','pluginlist','cron','profilefield','loa dcache','noticecache');
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01211 seconds
  • Memory Usage 1,763KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (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_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete