Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 10-03-2002, 11:52 PM
Pezman's Avatar
Pezman Pezman is offline
 
Join Date: Aug 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Performance Hacks... Please advise

I run a huge vB site. We currently have 2,300 users online at this very second. 80,000 members are registered there.

Our board has no hacks installed. I have found it nearly takes a supercomputer to get the forums working at this level.

I was wondering if someone could direct me to any speed enhancements that are reliable and very stable.

I have kept from installing hacks to this point because it makes it hard to upgrade, and might open ourselves up to security exploits.

Could someone offer any ways to speed up our board? We have had to turn off ForumJump, and WhoIs Online as of late because our numbers are growing so rapidly. Jelsoft seems to be very busy with vB 3.0 and hasn't offered a great deal of help. To my knowledge we are the largest board out there, and would love to grow, but we are reading the limitations of vB at this point.

Specifically I heard of a hack that logs thread views to a temp table then dumps them to the primary database at random times. This would reduce the ammount of time MySQL is locked and allow more users to browse the board. I searched but found nothing, could someone point me to this specific hack?
Reply With Quote
  #2  
Old 10-04-2002, 01:28 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=40137&highlight=deferre d+threadviews" target="_blank">https://vborg.vbsupport.ru/showt...ed+threadviews</a>

You should be aware it is still technically a beta hack.
Whilst I have installed it on my forums, I certainly would consider it a last resort solution after exhusting methods of optimising mysql.
Reply With Quote
  #3  
Old 10-04-2002, 08:55 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

every hack which reduces queries would help you a bit

this for example is a musthave:
https://vborg.vbsupport.ru/showthrea...hlight=queries
Reply With Quote
  #4  
Old 10-04-2002, 02:49 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is not an improvement btw.

It will actually make things worse as its dependant on the size of your tables.

And please please please realise that number of queries is not everything, its the cost of the query including read / write access to the files and the number of rows that have to be scanned.

For example
SELECT * FROM poll LEFT JOIN thread ON (poll.pollid=thread.pollid) ORDER BY dateline DESC LIMIT 1

is more costly than two seperate queries
SELECT MAX(pollid) as PID FROM thread;
SELECT * FROM poll WHERE poll.pollid=$var[PID]

Also consider posting on the Server Config forum on vBulletin.com and getting eva2000 to optimize your apache and mysql settings.

Are you running two seperate servers? If not then thats the way to go because you have alot of users online.
Reply With Quote
  #5  
Old 10-04-2002, 02:56 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I remember now it doesnt use the index if you do that which causes speed problems
Reply With Quote
  #6  
Old 10-04-2002, 04:17 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Either query is terrible unless you put an index on pollid in the thread table.
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:48 PM.


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.03737 seconds
  • Memory Usage 2,197KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete