Steven W. Orr wrote:
I. I am running MySQL version 5.067 which apparently is not enough to be
allowed to run InnoDB.

Strange; IIRC InnoDB has been available since some late 3.something versions, and most 4.x releases. The MySQL docs should be the authoritative reference for this though.

The questions is this: I thought that InnoDB was going
to consume *more* resources because the purpose of it was to support
transactions. Am I wrong? If I convert to a higher rev of MySQL and get InnoDB
 will I get *better* performance?

Likely not; MySQL gets a great deal of its speed from... not doing transactions.

Not having done any detailed performance tuning or testing, I can't say for sure - but from what I recall from my reading on this subject that's one of the points formally documented by the MySQL devs themselves.

II. The other question I asked earlier and didn't get an answer to, is...
Is there a consensus on the optimal time that the bayes_seen and awl tables
should be expired? Is 3 months good? Will 6 months not buy me anything but
hurt performance? Will two months make my bayes tables less accurate?

Well, expiring from bayes_seen is essentially deleting the message-id's of messages that have been learned. Those are *only* used to determine if a new message to be learned has been seen before, and can, generally, be deleted at will based on whatever criteria you please. ("Third character is a vowel, and today's Tuesday... Delete that one!")

Cron'ed Bayes-feeding tasks that are known to read the same set of messages for some amount of time are one reason to not simply "delete from bayes_seen;". (Unless you really *want* to relearn the same messages over and over again - FWIW, I *have* found that cases of "this spam was sent to half my userbase" make that something you might want to do deliberately now and then.)

We keep two weeks' worth for both bayes_seen and AWL; the on-disk files for MySQL run about 300-350M for AWL and ~150-200M for bayes_seen. This is a modest cluster that idles along filtering ~400K of ~3M messages daily. Autolearn is enabled - without it, bayes_seen would likely not grow quite so fast.

We also have a disk space restriction in that we've put the SA database on a ramdisk to increase performance; it gets dumped to a file on a real disk daily as a backup.

-kgd

Reply via email to