4 hours later…
10:55
@GeorgeBailey The downside to stuffing the log directly into a database is that when the database is down or unreachable, your website will stop. That's why I'd recommend having the website log to syslog/a file, and then having another program parsing the log and putting it into the database. (I've actually written things to do that for proprietary log formats, and yes, having the logs in a database was very useful indeed.)
4 hours later…
14:59
@JennyD, Resource consumption was something I knew could be an issue. I've been optimizing as I go, and hopefully any changes needed at production will be straight forward.
@JennyD, I solved the db down problem by having them go into temporary files before they are inserted into the database. The webserver will automatically pick up and retry any previous fails before importing the next batch.
The temporary files represent a single batch which is at 5 second or 5 minute intervals depending on client needs.
« first day (1921 days earlier) ← previous day next day → last day (3346 days later) »