ilios/ilios — pull request #613 by jrjohnson (2014-05-21 09:04:54+00:00)
Title: Deal effectively with large audit_atom table

The original cron audit truncation script expected a reasonable number of rows in the audit_atom table.

Instead of attempting to write logs and delete rows in a single pass
run loops which break the task into manageable pieces which do not run
out of memory. Using this system even tables with tens of millions of
records can be effectively managed.

Also, Ensure Ilios_Logger can rotate large files since each run on a huge DB will end up with a large log file to rotate.