|
|||||||||||
|
Re: Bayes innodb problems
From: Micah Anderson <micah(at)riseup.net>
Date: Fri Sep 28 2007 - 10:55:16 EDT
Actually this bayes DB has been around for a few months, and has been built up over time. This does make me wonder what regular DB maintenance tasks should be performed on the bayes DB. It sounds like some people let the code auto-expire, while some run cron jobs to expire data? What are the benefits of each? Should I be running an optimize table every so often? >> # Time: 070926 17:10:53 Since I've adjusted the SQL query to use the index, I haven't seen this problem, so I can't look at the State column to see what is going on. This DB server isn't doing anything else, for any other database, so there was no possibility of other things hogging the resources on the server. > The database design and query design of Spamassassin is ok, even the That is if I am optimizing... mysql> explain SELECT count(*) FROM bayes_token WHERE id = '4' AND ('1190846660' - atime) > '345600'; +----+-------------+-------------+------+--------------------------+------------------+---------+-------+--------+--------------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------------+------+--------------------------+------------------+---------+-------+--------+--------------------------+ | 1 | SIMPLE | bayes_token | ref | PRIMARY,bayes_token_idx2 | bayes_token_idx2 | 2 | const | 229946 | Using where; Using index | +----+-------------+-------------+------+--------------------------+------------------+---------+-------+--------+--------------------------+ >> innodb_flush_log_at_trx_commit=1 Mine doesn't have a comment... but looking at http://dev.mysql.com/doc/refman/5.0/en/innodb-parameters.html does lead me to want to change this since I dont care about transaction-level ACID compliance with the bayes database, if I have issues with that DB, I can always restore the backup from the day before. Micah Received on Fri Sep 28 10:56:29 2007 This archive was generated by hypermail 2.1.8 : Sat Oct 27 2007 - 20:44:56 EDT |
||||||||||
|
|||||||||||