Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Need suggestion on problem to distribute work

by Marshall (Canon)
on Jun 18, 2020 at 02:30 UTC ( #11118219=note: print w/replies, xml ) Need Help??


in reply to Re^2: Need suggestion on problem to distribute work
in thread Need suggestion on problem to distribute work

I am still not understanding your application. I alluded to this before, but running 200 insertions as a single DB transaction can take about the same time as 1 or 2 single transactions. The transaction overhead is HUGE. Doing 200 insertions at once doesn't take much more time than doing just a single insertion.

I am not sure that forking or threading is your answer. I now suspect that your DB code is flawed.

  • Comment on Re^3: Need suggestion on problem to distribute work

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11118219]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2023-09-26 16:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?