in reply to Re: faster with threads?
in thread faster with threads?
One thing to watch out for is DBI thread/fork safe?
I seem to recall having problems with database connections 'going away' when using database handle inside forked off child processes. I resolved this by each child process recreating it's own database handle.Another thing to watch is maybe if the DB and log reside on the same disk then you could have decreased performance if doing major I/O on both at once, Hence maybe try and read the whole log into memory
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: faster with threads?
by etcshadow (Priest) on Jun 09, 2004 at 19:18 UTC | |
|
Re^3: faster with threads?
by necroshine (Acolyte) on May 09, 2008 at 20:47 UTC |