in reply to DBI and fork() on Win32
What you're doing is dangerous already on Linux/Unix. Not all DBDs support fork() on Unix. You take care to disconnect, which might prevent most of the problems. On Windows, fork() is only emulated through threads, and thus, all of the caveats in the DBI documentation about threads apply there. You should have one (and only one) DBI connection in your process. If you want to do parallel processing using a database (which I doubt will be efficient), then I recommend you launch separate child processes through system(1, ...) or system("start $cmd") to have really separate DBI handles.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI and fork() on Win32
by FloydATC (Deacon) on Feb 10, 2009 at 14:43 UTC | |
by Corion (Patriarch) on Feb 10, 2009 at 14:53 UTC | |
by FloydATC (Deacon) on Feb 10, 2009 at 15:22 UTC | |
by Corion (Patriarch) on Feb 10, 2009 at 15:46 UTC | |
by jand (Friar) on Feb 10, 2009 at 19:50 UTC | |
| |
by FloydATC (Deacon) on Feb 10, 2009 at 17:35 UTC |