sa-learn very slow!
Posted: 21 Nov 2014 22:02
sa-learn is taking a horrendously long time to complete and I think it has to do with the MySQL database backend.
This runs when the user clicks on the link on the bottom of an email message. The learn-msg.cgi script calls sa-learn and sa-learn takes over 30 seconds to complete. The browser shows a page with the filename, but never gets to completion. Eventually the page stops loading. If I refresh, the proper "EFA learned" screen comes up, I'm assuming because sa-learn reports back immediately that it has already learned the message.
Not sure where to go with this one. I've run sa-learn -D and I get something like (note the 20 seconds between the decoding and bayes lines):
This runs when the user clicks on the link on the bottom of an email message. The learn-msg.cgi script calls sa-learn and sa-learn takes over 30 seconds to complete. The browser shows a page with the filename, but never gets to completion. Eventually the page stops loading. If I refresh, the proper "EFA learned" screen comes up, I'm assuming because sa-learn reports back immediately that it has already learned the message.
Not sure where to go with this one. I've run sa-learn -D and I get something like (note the 20 seconds between the decoding and bayes lines):
Nov 21 16:40:20.565 [8864] dbg: metadata: X-Relay-Countries: US
Nov 21 16:40:20.566 [8864] dbg: message: decoding other encoding type (7bit), ignoring
Nov 21 16:40:20.566 [8864] dbg: message: decoding other encoding type (7bit), ignoring
Nov 21 16:40:40.216 [8864] dbg: bayes: seen (97cd88e9f2c53172f1cba49ac22e866911145f83@sa_generated) put
Nov 21 16:40:40.217 [8864] dbg: bayes: learned '97cd88e9f2c53172f1cba49ac22e866911145f83@sa_generated', atime: 1415390118
Learned tokens from 1 message(s) (1 message(s) examined)
Nov 21 16:40:40.218 [8864] dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x35c73d0) implements 'learner_close', priority 0