+ // 40 seconds ? to delete 100K records..
+ // DB_DataObject::debugLevel(1);
+ /*
+ $f = DB_DataObject::Factory('Events');
+ $f->query("
+ DELETE FROM Events where
+ event_when < NOW() - INTERVAL {$inM} MONTH
+ AND
+ action != 'NOTIFY'
+ LIMIT 100000
+ ");
+ */
+ // notificication events occur alot - so we should trash them more frequently..
+ /* $f = DB_DataObject::Factory('reader_article');
+ $f->query("
+ DELETE FROM Events where
+ event_when < NOW() - INTERVAL 1 MONTH
+ AND
+ action IN ('NOTIFY')
+ LIMIT 100000
+ ");
+ */