Saw lots of people whining about coming from mysql where is has
something built in for this.
Hacked around it already.
lock table
do insert
select max(id)
commit - which I BELIEVE unlocks table
disconnect - which I'm sure unlocks table.
I'm using Sun Grid Engine to control my print spooling. I've got dozens of
jobs associated with the spooling task, all of which have lots of logging
to individual log files / emails to user.
So I'm telling SGE to execute my logging scripts before and after each job,
which should allow reporting to come off the centralized database rather than
track stuff through the many log files.
So the before task creates the log entry, while the after task has to update it.