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
[–] 3 points 6 months ago* (1 child)

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

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

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 6 months ago

    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)

  • source
  • parent