vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - [AJAX] Helpful Answers - Post Rating System (plus many sub-features) (https://vborg.vbsupport.ru/showthread.php?t=204117)

Ted S 03-18-2009 02:02 PM

Quote:

Originally Posted by Spinball (Post 1771035)
I have over 3,000 concurrent users online. Has anyone tested the performance of their forum with this mod installed when they have that number of active users?

there are a few big board sites using this although I don't know their volume levels. Keep in mind that while there are queries when someone votes under the default settings none are added to the showthread page... Instead there is a join on the existing query and some php conditionals.

I suspect the biggest issue will be installing the mod as it adds two fields to the post table which can take sometime if your site has a few million posts.

Spinball 03-18-2009 05:25 PM

Quote:

Originally Posted by Ted S (Post 1771129)
there are a few big board sites using this although I don't know their volume levels. Keep in mind that while there are queries when someone votes under the default settings none are added to the showthread page... Instead there is a join on the existing query and some php conditionals.

I suspect the biggest issue will be installing the mod as it adds two fields to the post table which can take sometime if your site has a few million posts.

8 and a half million. Might it be worth combining the two alterations to the post table into one query?

Ted S 03-18-2009 05:52 PM

At 8.5 MM posts I'd actually suggest removing the table alter queries from the plugin entirely and running them via mySQL shell to avoid a timeout from your browser or the potential impact of a failed connection part way through.

DarkWarriorXII 03-18-2009 06:49 PM

Okay I've tested some things and text other than $helpful_answers (for example, random text) will appear on every post when inserted where $helpful_answers should be. When using either automatic or manual insert mode, it still only shows on the first post of each page. This is also true on a default style I installed that has no customizations at all.

Spinball 03-19-2009 08:21 AM

Is it at all possible to have this mod without altering any tables? Surely best practise would be not to alter the vB tables, but add new tables where needed?

Ted S 03-19-2009 03:01 PM

There's no best practice I'm aware of to avoid editing tables. Counts are stored with the post table because that's what's already being called.

It's certainly possible to do just about any mod without altering existing tables but I chose to alter the ones that made sense to alter as opposed to increasing queries and load by adding new ones which have to joined in.

Ted S 03-19-2009 03:02 PM

Quote:

Originally Posted by DarkWarriorXII (Post 1771325)
Okay I've tested some things and text other than $helpful_answers (for example, random text) will appear on every post when inserted where $helpful_answers should be. When using either automatic or manual insert mode, it still only shows on the first post of each page. This is also true on a default style I installed that has no customizations at all.

Please check your settings and let me know if you have enabled the mod to not show in the first post.

Spinball 03-19-2009 03:23 PM

Quote:

Originally Posted by Ted S (Post 1771884)
There's no best practice I'm aware of to avoid editing tables. Counts are stored with the post table because that's what's already being called.

It's certainly possible to do just about any mod without altering existing tables but I chose to alter the ones that made sense to alter as opposed to increasing queries and load by adding new ones which have to joined in.

Thanks for the reply. I'm of the feeling that it's probably not a good idea to alter the core tables of vBulletin even though so many hacks do it - including the immensely popular Post Thanks mod.
If the post table is absolutely huge like ours then it could possibly be argued that adding a couple of fields may have more detrimental effect than adding a new table and join element to the sql.

What drew me to your mod was the system they have on http://www.hotukdeals.com/

Ted S 03-19-2009 03:55 PM

Definitely good points although I'm clearly not against to editing the tables for logical storage and felt that it was appropriate here as what I was storing was summary post information. My pet peeve is when mods use generic names on their edits causing future updates or other mods to conflict... which is why I tend to use longer and more obscure field names.

For a larger board having the data stored in another table may make more sense although I'm not sure which is better (holding two more fields or joining one more table). Any ideas of the performance difference?

This mod would be fairly simple to extend to use a different table but I'm just not sure it's worth the import routines and work versus expanding the feature-set.

Ted S 03-19-2009 03:57 PM

I looked at the code to be sure my last statement is right and it is... If you just wanted to do core voting without some of the profile enhancements you'd be looking at 3 or 4 edits. To get every feature down to the logs and what not working it's a bit more but still nothing crazy.


All times are GMT. The time now is 05:07 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.03311 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete