The help provided by closed thread
Sure!
# fwconsole mysql
Connecting to the Databaseā¦Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4164
Server version: 5.1.73 Source distribution
Copyright Ā© 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be tradā¦
was helpful. Thank you!
After running the command,
MariaDB [asterisk]> delete from asteriskcdrdb.cdr where calldate < now() - interval 3 MONTH;
Query OK, 744002 rows affected (58.40 sec)
My backup filesize went from
224M
to
212M
OPTIMIZE TABLE was no help.
Should it be this big?
1 Like
Great
Hmmm I donāt know. about OPTIMIZE TABLE.
dicko
(dicko)
October 30, 2020, 4:31pm
3
You should probably do the same thing with asteriskcdr.cel on the eventtime column.
2 Likes
Hey Dicko. How are you man
Yes you are right.
1 Like
dicko
(dicko)
October 30, 2020, 4:34pm
5
trĆØs bien Franck mon vieil ami, et toi?
dicko:
trĆØs bien, et toi?
Je vais bien aussi.
Iām good too, even if in France, the lockdown is restarted for 1 month (Dec 1th).
dicko
(dicko)
October 30, 2020, 4:37pm
7
Luckily we in the USA are just fine as we have āturned the cornerā according to our revered President.
(oops, looks like we took a left instead of a right at that corner )
1 Like
Whatever your choice the next week. I hopefully you will get the good one.
cynjut
(Dave Burgess)
October 30, 2020, 5:57pm
9
āOptimize tableā compresses the table down and re-validates all of the indices. Basically, it gets rid of all of the records that have been marked for deletion and reclaims the space in the table space, then it initiates an index update to point the index entries to the new places where the records are in the database.
The ābestā time for an optimize is after youāve deleted a series of records over a given period of time. Since this operation deleted a chunk of the dataspace, an optimize is warranted.
1 Like
I already did the optimize table.
How do i
do the same thing with asteriskcdr.cel on the eventtime column
dicko
(dicko)
October 31, 2020, 10:42pm
11
delete from asteriskcdrdb.cel where eventtime < now() - interval 3 MONTH;
1 Like
MariaDB [asterisk]> delete from asteriskcdrdb.cel where eventtime < now() - interval 3 MONTH;
Query OK, 3501280 rows affected (3 min 18.80 sec).
WOW!
THANK YOU!! That brought the backup down to 46M
system
(system)
Closed
June 3, 2021, 10:57pm
13
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.