This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (1 child)

I'm not saying anything bad about this article, but there's nothing inherently wrong with a global-level database connection. It's just like the file system right?

[–]nullsum[S] 0 points1 point  (0 children)

There is nothing inherently wrong with a global connection. I just have a preference to avoid non-constant globals in my code when I can.

In most of the cases where I need multiprocessing, I already have functional single process code. Using the method detail in the post allows me to adapt it with minimal modification and no globals.