Can vicidial_manager table be truncated on nightly basis?

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Can vicidial_manager table be truncated on nightly basis?

Postby okli » Sat Mar 28, 2009 6:23 am

Last time I checked it had over 4 mill. records, causing severe lock-ups of the MySQL queries to it.

Is the table used for any reports? Can it be safely truncated on nightly/ weekly basis? Maybe include that in AST_DB_optimize.pl?

Using 2.0.5 SVN version maybe 2 months old and am afraid to update since it's working perfectly.
okli
 
Posts: 669
Joined: Mon Oct 01, 2007 5:09 pm

Postby mflorell » Sat Mar 28, 2009 9:33 am

If you had followed the installation instructions this table should be cleared every hour.

There is a crontab entry that does this:

### flush queue DB table every hour for entries older than 1 hour
11 * * * * /usr/share/astguiclient/AST_flush_DBqueue.pl -q
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby okli » Sat Mar 28, 2009 11:39 am

Guilty.

Had it only on first server, on the second one it was commented out, most likely when migrated to multi-server setup.

Must also have missed the grep result for that file, done before posting here.

Thanks.
okli
 
Posts: 669
Joined: Mon Oct 01, 2007 5:09 pm


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 284 guests