Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 10-29-2007, 05:59 PM
Tourmeister Tourmeister is offline
 
Join Date: Nov 2005
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I would look first for mods that do a search similar to unread posts, something that has to do a different DB fetch for depending on each user that views the page.
Reply With Quote
  #12  
Old 10-29-2007, 06:02 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tourmeister View Post
That is interesting... I have the Display Unread Posts 1.01 installed on the twtex.com site and we are not seeing similar issues. Both sites have about the same number of users online at any given time. Might any of those other mods listed also result in an output like that shown above?

That code is definitely from my old vb 3.5 unread posts mod (v1.01 seems reasonable).

Looking at the number of rows examined, and the time taken, I would say you are almost certainly missing the dateline index on the post table. Add that index and I think you will cure the problem.

BTW, if you are not running vb 3.5 anymore, then you should update to the latest version, it will add the index when you install it.
Reply With Quote
  #13  
Old 10-29-2007, 06:22 PM
Tourmeister Tourmeister is offline
 
Join Date: Nov 2005
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
That code is definitely from my old vb 3.5 unread posts mod (v1.01 seems reasonable).

Looking at the number of rows examined, and the time taken, I would say you are almost certainly missing the dateline index on the post table. Add that index and I think you will cure the problem.

BTW, if you are not running vb 3.5 anymore, then you should update to the latest version, it will add the index when you install it.
Howdy Paul,

I (the twtex.com site) am running VB 3.6.5 with the Display Unread Posts v1.0.1 with no problems. The St-owners site is on VB 3.6.4 and running the same version of the Unread Posts, and is having the load issues. Was this dateline index added from 3.6.4 to 3.6.5?

How would you go about adding the index manually if Mellow is not ready to upgrade his VB to the latest version?
Reply With Quote
  #14  
Old 10-29-2007, 06:30 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The dateline index does not exist in default vb, I think the mod included instructions to add it at one point but I'm not sure.

Anyway, just use this SQL command ;

[sql]ALTER TABLE post ADD INDEX (dateline) ;[/sql]

However, since you are both running vb 3.6, so you should really be running this version of the mod (which as I said, creates the index automatically).

https://vborg.vbsupport.ru/showthread.php?t=123886

The version you are currently using is very old.
Reply With Quote
  #15  
Old 10-29-2007, 06:34 PM
Tourmeister Tourmeister is offline
 
Join Date: Nov 2005
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Paul! :up: I will just upgrade the mod for my site.
Reply With Quote
  #16  
Old 10-29-2007, 06:45 PM
Mellow's Avatar
Mellow Mellow is offline
 
Join Date: Nov 2003
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Done, thanks Paul.

Is there a way of knowing if the index is there or not? I don't have myphpadmin handy at the moment. Can a query from admincp show that? I do see a MUL in the Key column of the dateline attribute for the post table but I think that was there before.

Either way, better to have a current version.

Well, monitor and see if that fixes the situation.
Reply With Quote
  #17  
Old 10-29-2007, 06:46 PM
Tourmeister Tourmeister is offline
 
Join Date: Nov 2005
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Man, that was a nice easy upgrade!
Reply With Quote
  #18  
Old 10-29-2007, 08:25 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mellow View Post
Is there a way of knowing if the index is there or not? I don't have myphpadmin handy at the moment. Can a query from admincp show that?
Yes, just run

Quote:
show index from post
Reply With Quote
  #19  
Old 10-29-2007, 08:42 PM
Mellow's Avatar
Mellow Mellow is offline
 
Join Date: Nov 2003
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you sir!
Reply With Quote
  #20  
Old 10-30-2007, 02:09 AM
Tourmeister Tourmeister is offline
 
Join Date: Nov 2005
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well now... things have gotten interesting...

Mellow and I both upgraded to the latest version of the mod. That made BOTH sites start cranking out long queries... I was monitoring using mtop and was seeing multiple queries from both of our sites hitting from 1-6 seconds in length and it ran the server load up to a sustained average of 2.5 or so, when it normally is around .50 or less.

On a hunch, I removed the new version and the queries from my site stopped showing up on the mtop listing. I contacted Mellow and he removed it from his site. Since that time, there have been no queries over 1 second and the average server load is back down where it should be.

What is odd is that the old version (1.0.1) was working perfectly for me prior to the upgrade. I would reinstall it just to see what happens, but I deleted it from VB and now cannot find the old file I downloaded! DOH!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:06 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.05970 seconds
  • Memory Usage 2,254KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete