this post was submitted on 06 May 2026
158 points (97.6% liked)

Programmer Humor

31275 readers
1708 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

A picture of a car with a license plate that reads LUAAAAA.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] marcos@lemmy.world 3 points 11 hours ago* (last edited 11 hours ago) (1 children)

You can set a connection pool. Or use a database proxy.

EDIT: Oh, you are using Django for shell scripts?

Yeah, but the python runtime still needs to open sockets. We have some kafka listeners using the ORM and we got the bad surprise of openning too many connection because django would keep opening them without closing them

We used it for some batch processing and to have the admin for some managing (specially for retries)