How to manage db connections on server?

前端 未结 3 1489
一个人的身影
一个人的身影 2020-11-30 13:51

I have a severe problem with my database connection in my web application. Since I use a single database connection for the whole application from singleton Database class,

3条回答
  •  佛祖请我去吃肉
    2020-11-30 14:12

    I've not much experience with PostgreSql, but all the web applications I've worked on have used a single connection per set of actions on a page, closing it and disposing it when finished.

    This allows the server to pool connections and stops problems such as the one that you are experiencing.

提交回复
热议问题