Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
DBI Threaded use access?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jack Craig  
View profile  
 More options Oct 10 2012, 4:30 pm
Newsgroups: perl.dbi.users
From: jack.craig.ap...@gmail.com (Jack Craig)
Date: Wed, 10 Oct 2012 13:21:34 -0700
Local: Wed, Oct 10 2012 4:21 pm
Subject: DBI Threaded use access?
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?

TIA, jackc...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Buxton  
View profile  
 More options Oct 10 2012, 9:45 pm
Newsgroups: perl.dbi.users
From: chris.p.bux...@gmail.com (Chris Buxton)
Date: Wed, 10 Oct 2012 18:32:54 -0700
Local: Wed, Oct 10 2012 9:32 pm
Subject: Re: DBI Threaded use access?
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Buxton  
View profile  
 More options Oct 11 2012, 11:45 am
Newsgroups: perl.dbi.users
From: chris.p.bux...@gmail.com (Chris Buxton)
Date: Thu, 11 Oct 2012 08:31:51 -0700
Local: Thurs, Oct 11 2012 11:31 am
Subject: Re: DBI Threaded use access?

On Oct 11, 2012, at 8:15 AM, Tim Bunce wrote:

Another possibly useful resource on this topic can be found here:

http://search.cpan.org/~darnold/DBIx-Threaded-0.10/lib/DBIx/Threaded.pm

Looks good for DBDs that aren't reentrant. I haven't tried it myself.

Chris Buxton
BlueCat Networks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »