I've got a log parser in perl and it uses the mysql insert or update command on every line. Like:
Log line 1: 2012-12-01 12:12 [perld] Hello world #1
....
Log line N: 2012-12-01 12:NN [perld] Hello world #N
It parses these lines and gets "timestamp" and "#N" and inserts them into the mysql db (parses line with perl::tail function).
I've got about 100 lines/second so there would be about 100 inserts to mysql.
Is there any solution/algorithm to optimize that? Or maybe I should use something like buffer with insert?