logo       

Re: Manage CDR databse.: msg#00060

Subject: Re: Manage CDR databse.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

#!/bin/bash
echo "delete from cdr where calldate <= DATE_SUB(NOW(),interval 1
month);" | mysql asteriskcdrdb


Chris Modesitt wrote:
> Hi all, I have been using AMP for over a year for our companies PBX, we
> process about 2500 calls a day and our CDR reporting has slowed down a
> crawl because of it.  (Several million entries now).  What would be the
> easies way to purge all of the CDR records that are older than XX days
> on a nightly basis?  Any suggestions would be greatly appreciated.
> 
>  
> 
> Thanks
> 
>  
> 
> Chris
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDxX+Wy9wPyZpnL2URAhcDAJ96jEa2qQ5DF+qZKj7VsyX4HD9AvwCeOfjB
umtxZr1MhKm2WoNvmTgLwCo=
=pYRP
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe