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

  • marcos@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    1 day ago

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

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

    • Melusine@tarte.nuage-libre.fr
      link
      fedilink
      Français
      arrow-up
      1
      ·
      21 hours 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)