vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   CRON Repair optimize tables 3.5.4 (https://vborg.vbsupport.ru/showthread.php?t=130293)

imported_infitech 10-29-2006 02:54 PM

CRON Repair optimize tables 3.5.4
 
Was wondering if someone could tell me how i would go about setting up repar/optimize tables as a cron job for 3.5.4. I didnt want to download the database backup pro hack for 3.0 for a couple reasons - one being that it backs up ur database..... I just wanna run repair/optimize tables like once a week. Im going away for about 2 months to a third world country and i dont imagine i will have time to do my weekly repair optimize tables.....
any help would be greatly appreciated.

Zachery 11-02-2006 04:40 PM

Its not really nessary to run a optmize now and then I'd be more worried about it needing a repair, however I dont believe the cron system (at least not the vB one) is going to get the job done.

If you have SSH/cron access you can setup a nightly repair on the database via mysqlcheck or myisamcheck which would get the job done better.

Paul M 11-02-2006 05:52 PM

There is no technical reason you could not use the vb cron system, it's only running (a lot) of SQL commands, no different to running a select or update. I would question why you want to do this. Unless a table is broken then there is no need to run a repair on it, and there is no real need to optimise tables on a regular basis.

Zachery 11-02-2006 09:51 PM

The reason why you wouldnt want the vbcron system running repairs is.. what happens if the cron table breaks? or the usertable. the tasks are going to stop running. Thats why it'd be better to use the systems cron.

imported_infitech 11-03-2006 03:10 PM

im no pro at this but my board actually runs a lot faster when i repair/optimize

goyo 11-12-2006 01:03 PM

Quote:

Originally Posted by Paul M
I would question why you want to do this. Unless a table is broken then there is no need to run a repair on it, and there is no real need to optimise tables on a regular basis.

I'm not a sql pro...but same here...One and a half million posts...huge daily overhead in several tables (megabytes)...after optimization somehow it runs much smoother.

xcingix 12-11-2007 01:33 PM

Quote:

Originally Posted by goyo (Post 1115436)
I'm not a sql pro...but same here...One and a half million posts...huge daily overhead in several tables (megabytes)...after optimization somehow it runs much smoother.

SERIOUSLY.
The improvement in speed on my site is drastically changed when I do a repair and optimize.
I know it's not recommended, but can someone just tell me how I can do an automatic "repair and optimize database" about 4 times a day?

I would also0 REALLY really appreciate it if someone could tell me how to do an auto database backup every two days of my whole database to my server that overwrites the old file.

Thanks in advance professionals.

Zachery 12-11-2007 04:23 PM

Unless you are mass deleting threads and attachments on a daily basis there is no real reason for an optmize to bring a large speed up.

ssslippy 12-11-2007 07:04 PM

There is a mod for this that does a nightly optmization.

xcingix 12-11-2007 09:07 PM

Quote:

Originally Posted by ssslippy (Post 1399386)
There is a mod for this that does a nightly optmization.

ummmmmmmmmmm?


All times are GMT. The time now is 12:03 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.04484 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete