Re: DBI Threaded use access?

Chris Buxton <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
On Oct 10, 2012, at 1:21 PM, Jack Craig wrote:

> Hi DBI-Users,
> 
> I have a simple Perl program to open a file, db, serially read file, write
> file records to db, close db, close file.
> 
> if, between the db open & close, given a single dbh, i create multiple
> threads, each
> reading a segment of the file and asynchronously writing to db using the
> same dbh,
> is that ok?


No. Each thread needs its own dbh. Your DBD may not support this.

Chris Buxton
BlueCat Networks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.