News for hackers. Stuff that matters.
Re:Show HN: 1M rows/s from Postgres to Python by zzzeek on Thursday August 04, 2016 @06:24PM (#12228884)
If you write a program that has thousands of persistent websockets open, you do not want all those thousands of connections to each have their own, persistent, long lived database transaction. You will not like your process listing nor will you be happy about the amount of table and row locking going on. Transactions and connection scope should be short lived, and if you're using a connection pool, you definitely are going for that. As my blog post stated, you'd use a thread pool for the database access part, given that the http-facing side is async.

There are no comments on this comment yet.