Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Big Board Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Stored Procedures and Triggers Details »»
Stored Procedures and Triggers
Version: , by vantage255 vantage255 is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-26-2006 Last Update: Never Installs: 0
 
No support by the author.

Has anyone attempted to convert any backend tasks into MySQL stored procedures?

I am working on a few to move data from large threads into archived threads, but has anyone else started working with this? What results have you seen?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-27-2006, 02:03 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, we still run mysql4 which doesn't have them.
Reply With Quote
  #3  
Old 05-27-2006, 05:28 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I', waiting abit longer before I move to mysql5 due to some crashing bugs in 5.0.21, I'll hold off for .25 or at least untill 21 gets its issues fixed.
Reply With Quote
  #4  
Old 05-27-2006, 05:06 PM
vantage255's Avatar
vantage255 vantage255 is offline
 
Join Date: Apr 2006
Location: St Petersburg Florida
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fair enough. I am testing 5.1 at the moment. I am very interested in the addition of clustering, now that it uses disk instead of ram.
One of the side effects is that I now have stored procedures. So I started testing. It looks like archiving thread data is pretty easily done. I'm experimenting with how many posts to move per query now. It looks like 100 is a decent numbet, but I am concerned that, on a big board, you might have several threads being archived in the same time frame.
I think this might need to be tuned per board.
Reply With Quote
  #5  
Old 05-29-2006, 12:15 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using 5.1 - are there bugs with it? I've had 1 instance where mysql hung on me.
Reply With Quote
  #6  
Old 05-29-2006, 03:39 PM
vantage255's Avatar
vantage255 vantage255 is offline
 
Join Date: Apr 2006
Location: St Petersburg Florida
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seams to be pretty stable for me.
Im not having any issues.

I really wanted to get a good idea of the performance Vs. 4.0 and I wanted to try out the native clustering. Now that it uses HD space instead of ram it may actualy be useable
Reply With Quote
  #7  
Old 05-29-2006, 04:53 PM
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Location: Buenos Aires
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just upgraded to 5.1, can you inform me how to do this? Im insterested.
Reply With Quote
  #8  
Old 05-29-2006, 06:01 PM
vantage255's Avatar
vantage255 vantage255 is offline
 
Join Date: Apr 2006
Location: St Petersburg Florida
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im not so good a tutorial writer, But I do have a few relivant links.

http://dev.mysql.com/doc/refman/5.0/en/triggers.html

Thats the MySQL trigger docs. Pretty decent docs if you are used to the way Mysql.org writes there stuff.

I also picked up the new Oreilly "MySQL: stored procedures" book. Its pretty easy to grok.

and I havent done anything with the new load ballancing setup yet though. Its my understanding that the config is pretty much teh same as it is for 5.0. but you can specify HD space to use for the cache.
Reply With Quote
  #9  
Old 05-29-2006, 11:22 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm going to downgrade from 5.1 back to 4.1 - for some reason mysql has been acting up recently and I don't know why, but suspect this may be the case.

It's harder to downgrade than it looks - with the size of my database import/export takes hours.

This is a good reference:
http://dev.mysql.com/doc/refman/5.0/...ng-to-4-1.html

I'm still downgrading...
Reply With Quote
  #10  
Old 05-31-2006, 03:37 AM
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Location: Buenos Aires
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vantage255
Im not so good a tutorial writer, But I do have a few relivant links.

http://dev.mysql.com/doc/refman/5.0/en/triggers.html

Thats the MySQL trigger docs. Pretty decent docs if you are used to the way Mysql.org writes there stuff.

I also picked up the new Oreilly "MySQL: stored procedures" book. Its pretty easy to grok.

and I havent done anything with the new load ballancing setup yet though. Its my understanding that the config is pretty much teh same as it is for 5.0. but you can specify HD space to use for the cache.
Thanks James
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 07:29 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.06275 seconds
  • Memory Usage 2,289KB
  • Queries Executed 23 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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