Go Back   vb.org Archive > Community Central > Community Lounge
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools Display Modes
  #41  
Old 05-22-2014, 04:02 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I looked over the user tagging addon, it does run several alters on the user table, however, it is insane if its taking you 6+ hours to install it.

There is something wrong with your MySQL configuration.
  #42  
Old 05-22-2014, 04:15 PM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by katie hunter View Post
Try installing this plugin as a test on a popular vb community with millions of posts, threads and members and see how long it will take https://vborg.vbsupport.ru/showthread.php?t=242733 I tried fiew others and same issue i had, 6+ hours to import or uninstall.
I just tried on a couple of sites locally out of curiosity. Neither site is *that* huge, but one has 1.5 million posts and another has 150,000 members. If I were you I would seriously look into your configuration since there's no reason your site should take 6 hours when both of my tests took less than a minute. Even if you're sites were 10x larger then you should still be able to install in less than 10 minutes.
Also, what are the results like when you try to install one of the products to your local computer? I assume you're testing things locally first and not just updating the live server anyway? Does it take you 6 hours locally too?

These tests were done locally running a Core i7 3770, 16GB RAM, w/ MySQL tables saved on a 7200RPM HDD. It's definitely NOT optimized for Apache or MySQL either.

Forum 1 running vB3 install time was 17 seconds.
100,000 threads
1,500,000 posts
11,000 members

Forum 2 running vB4 install time was 47 seconds.
36,000 threads
191,000 posts
148,000 members
Благодарность от:
Zachery
  #43  
Old 05-22-2014, 04:25 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
I looked over the user tagging addon, it does run several alters on the user table, however, it is insane if its taking you 6+ hours to install it.

There is something wrong with your MySQL configuration.
Zachery, only DB's plugin does this.

Quote:
Originally Posted by Tigga View Post
I just tried on a couple of sites locally out of curiosity. Neither site is *that* huge, but one has 1.5 million posts and another has 150,000 members. If I were you I would seriously look into your configuration since there's no reason your site should take 6 hours when both of my tests took less than a minute. Even if you're sites were 10x larger then you should still be able to install in less than 10 minutes.
Also, what are the results like when you try to install one of the products to your local computer? I assume you're testing things locally first and not just updating the live server anyway? Does it take you 6 hours locally too?

These tests were done locally running a Core i7 3770, 16GB RAM, w/ MySQL tables saved on a 7200RPM HDD. It's definitely NOT optimized for Apache or MySQL either.

Forum 1 running vB3 install time was 17 seconds.
100,000 threads
1,500,000 posts
11,000 members

Forum 2 running vB4 install time was 47 seconds.
36,000 threads
191,000 posts
148,000 members
I have no issue with any plugin, only DB's, that is what i said on page 1 from the start, that i stay away from his plugins because of this issue which puts my site down until the entire process finishes.
  #44  
Old 05-22-2014, 04:34 PM
Necrovaris Necrovaris is offline
 
Join Date: Jul 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by katie hunter View Post
I have no issue with any plugin, only DB's, that is what i said on page 1 from the start, that i stay away from his plugins because of this issue which puts my site down until the entire process finishes.
Which as many people have been saying, if thats the case theres something *horribly* wrong with your setup.

Id be willing to prove it aswell, hook me up with a copy of your vb install and database, and you can install the addon on one of my servers, I bet it would be done in minutes.
  #45  
Old 05-22-2014, 04:34 PM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by katie hunter View Post
Fillip, I've quoted what you said on page 1, you said exactly this
Yes I did. I've never denied that we've had complaints from large forums as a result of the alters on the "post" and "user" tables. Nobody has ever complained about a 6+ hour lock, that is an issue on your server and your server alone.

A large forum is going to complain if it takes more than 30 seconds to install (which is the timeout value of PHP scripts on most servers), unless their server is setup to allow for PHP scripts to extend their execution time infinitely.

Please stop arguing the point with people who know more about this than you.
I'm not saying this to be offensive, I wouldn't argue with a chemist about the effects of certain drugs just because I at one point read a Wikipedia page. I accept that this person is more knowledgeable than me in the field of chemistry.

Just for fun, I'm going to show you how fast our database server can run an alter on a DB table that has 9 million rows in it.
The specs of the DB server are as follows:
CPU: 3.3Ghz e3-1230-V2 Ivy Bridge with HT
RAM: 8GB DDR3
HDD: 60GB Intel Solid State Drive 520 Series
OS: CentOS 6.5 x64

Code:
MariaDB [finalfan_forum]> SELECT COUNT(*) FROM dbtech_vbactivity_pointslog;
+----------+
| COUNT(*) |
+----------+
|  9051708 |
+----------+
1 row in set (0.00 sec)
As you can see, it has 9 million, 51 thousand, 7 hundred and 8 rows. This is approximately 6 times as many rows as you have in your "user" table.

A clean install of Advanced User Tagging (latest version at the time of writing) is going to run 9 alters in total against the "user" table (spread across 3 different installation steps). This modification does not alter the "post" table in any way, shape or form.

This is the result:
Code:
MariaDB [finalfan_forum]> ALTER TABLE dbtech_vbactivity_pointslog ADD testcolumn INT(10) UNSIGNED NOT NULL DEFAULT '0';
Query OK, 9051708 rows affected (38.38 sec)            
Records: 9051708  Duplicates: 0  Warnings: 0
In other words, 1 out of 9 alters takes 38.38 seconds on a machine that is empirically slower than yours.

Extrapolating this further, 9 out of 9 alters would take approximately 345.42 seconds, or 5.76 minutes.

What about uninstallation, you ask?
Code:
MariaDB [finalfan_forum]> ALTER TABLE dbtech_vbactivity_pointslog DROP testcolumn;                                     
Query OK, 9051708 rows affected (35.60 sec)            
Records: 9051708  Duplicates: 0  Warnings: 0
1 out of 9 uninstallation steps takes 35.60 seconds.

Extrapolating this further, 9 out of 9 uninstallation steps would take 320.4 seconds or 5.34 minutes.

Even if we double, triple, quadruple, [...] the query time to account for the delay suffered when running this query via PHP as opposed to the command line, this does not come anywhere NEAR the 6+ hour time your server is experiencing.

The forum in question was http://www.finalfantasyforums.net/ which has over 1 million posts at the time of writing yet did not experience any issues when installing any of our modifications that make numerous alters to the "post" table.
(We host this forum, and the database server the forum runs on is the machine whose specs I listed above.)

I'm very much going to enjoy hearing your next round of excuses


Fillip
  #46  
Old 05-22-2014, 04:41 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good god you need to tell your final fantasy client to configure the copyright mod better lol, that footer is full of backlinks.
  #47  
Old 05-22-2014, 04:50 PM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by katie hunter View Post
I have no issue with any plugin, only DB's, that is what i said on page 1 from the start, that i stay away from his plugins because of this issue which puts my site down until the entire process finishes.
I doubt many others make as many table alterations as his, simply because they're not necessary for that modification or because the author may not realize that altering a vB table would be better than trying to keep up with separate tables. I fully agree that it's best to avoid altering vB tables when you can, but it's often not the best practice if you want an add-on to run smoothly and without taking up any extra server resources. I'd much rather have it shut down my forum for 10 minutes during the install than to have it running extra queries during every page load after that. A 6 hour install time is obviously different, but apparently you're the only one that's experiencing times that are anywhere near that extreme, so I'd say it sounds more like DB has things balanced correctly and it's your server configuration that is suspect.
Благодарность от:
CAG CheechDogg
  #48  
Old 05-22-2014, 04:57 PM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by final kaoss View Post
Good god you need to tell your final fantasy client to configure the copyright mod better lol, that footer is full of backlinks.
That's kind of the idea

They are fine with having it like that, and it gives us more traffic, so everybody's happy


Fillip
  #49  
Old 05-22-2014, 05:01 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DragonByte Tech View Post
Yes I did. I've never denied that we've had complaints from large forums as a result of the alters on the "post" and "user" tables. Nobody has ever complained about a 6+ hour lock, that is an issue on your server and your server alone.

A large forum is going to complain if it takes more than 30 seconds to install (which is the timeout value of PHP scripts on most servers), unless their server is setup to allow for PHP scripts to extend their execution time infinitely.

Please stop arguing the point with people who know more about this than you.
I'm not saying this to be offensive, I wouldn't argue with a chemist about the effects of certain drugs just because I at one point read a Wikipedia page. I accept that this person is more knowledgeable than me in the field of chemistry.

Just for fun, I'm going to show you how fast our database server can run an alter on a DB table that has 9 million rows in it.
The specs of the DB server are as follows:
CPU: 3.3Ghz e3-1230-V2 Ivy Bridge with HT
RAM: 8GB DDR3
HDD: 60GB Intel Solid State Drive 520 Series
OS: CentOS 6.5 x64

Code:
MariaDB [finalfan_forum]> SELECT COUNT(*) FROM dbtech_vbactivity_pointslog;
+----------+
| COUNT(*) |
+----------+
|  9051708 |
+----------+
1 row in set (0.00 sec)
As you can see, it has 9 million, 51 thousand, 7 hundred and 8 rows. This is approximately 6 times as many rows as you have in your "user" table.

A clean install of Advanced User Tagging (latest version at the time of writing) is going to run 9 alters in total against the "user" table (spread across 3 different installation steps). This modification does not alter the "post" table in any way, shape or form.

This is the result:
Code:
MariaDB [finalfan_forum]> ALTER TABLE dbtech_vbactivity_pointslog ADD testcolumn INT(10) UNSIGNED NOT NULL DEFAULT '0';
Query OK, 9051708 rows affected (38.38 sec)            
Records: 9051708  Duplicates: 0  Warnings: 0
In other words, 1 out of 9 alters takes 38.38 seconds on a machine that is empirically slower than yours.

Extrapolating this further, 9 out of 9 alters would take approximately 345.42 seconds, or 5.76 minutes.

What about uninstallation, you ask?
Code:
MariaDB [finalfan_forum]> ALTER TABLE dbtech_vbactivity_pointslog DROP testcolumn;                                     
Query OK, 9051708 rows affected (35.60 sec)            
Records: 9051708  Duplicates: 0  Warnings: 0
1 out of 9 uninstallation steps takes 35.60 seconds.

Extrapolating this further, 9 out of 9 uninstallation steps would take 320.4 seconds or 5.34 minutes.

Even if we double, triple, quadruple, [...] the query time to account for the delay suffered when running this query via PHP as opposed to the command line, this does not come anywhere NEAR the 6+ hour time your server is experiencing.

The forum in question was http://www.finalfantasyforums.net/ which has over 1 million posts at the time of writing yet did not experience any issues when installing any of our modifications that make numerous alters to the "post" table.
(We host this forum, and the database server the forum runs on is the machine whose specs I listed above.)

I'm very much going to enjoy hearing your next round of excuses

Fillip
Who said excuses. I know what i encountered. You want to tell me that only your plugins are causing issues on my forum when install or uninstall and all the other plugins by other members doesn't have the same affect ? Because that is what i noticed and saw (only yours), that is why i said i never try to install any because of this issue, it is kinda scary actually not knowing when the task will be finished and to wait that long.

My server admin has access to this topic and there is a pending ticket, i am sure if he noticed something wrong, he will let me know.

Quote:
Originally Posted by Tigga View Post
I doubt many others make as many table alterations as his, simply because they're not necessary for that modification or because the author may not realize that altering a vB table would be better than trying to keep up with separate tables. I fully agree that it's best to avoid altering vB tables when you can, but it's often not the best practice if you want an add-on to run smoothly and without taking up any extra server resources. I'd much rather have it shut down my forum for 10 minutes during the install than to have it running extra queries during every page load after that. A 6 hour install time is obviously different, but apparently you're the only one that's experiencing times that are anywhere near that extreme, so I'd say it sounds more like DB has things balanced correctly and it's your server configuration that is suspect.
I always have my forum turned off when installing any plugin.
  #50  
Old 05-22-2014, 05:06 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Send him over here and get him posting... it's probably about time he voiced in his opinion on the matter.
Closed Thread


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 04:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04179 seconds
  • Memory Usage 2,312KB
  • Queries Executed 14 (?)
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
  • (6)bbcode_code
  • (9)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
  • (4)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete