in reply to Re: Create parallel database handles... (MCE::Loop)
in thread Create parallel database handles or SQL statements for multi-threaded/process access to Postgres DB using DBI, DBD::Pg and Parallel::ForkManager
Thank you 1nickt for raising my attention to the difference between DB connections and DB handles. That is a very good point.
I don't understand the exact nature of how Perl uses a DBH and how Postgres sees it
using a separate DB connection instead for each child feels intuitively right
my understanding and use of the terms 'thread' and 'process' are not fully mature and somewhat imprecise
I have never used SQL::Abstract but upon having a cursory glance after your example it looks like a good option that may save me some code
I've also never used MCE - this is not as easy to understand and I'll have to look into it
I readily admit that:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Create parallel database handles... (MCE::Loop)
by 1nickt (Canon) on Apr 14, 2020 at 03:13 UTC | |
by perlygapes (Sexton) on May 08, 2020 at 06:10 UTC | |
by 1nickt (Canon) on May 08, 2020 at 16:44 UTC | |
by perlygapes (Sexton) on Aug 03, 2020 at 23:49 UTC | |
by marioroy (Prior) on Aug 07, 2020 at 17:07 UTC |
In Section
Seekers of Perl Wisdom