djangosnippets.org: Latest snippets posted by mike_tkhttps://djangosnippets.org/users/mike_tk/2009-08-29T07:02:43.120048-05:00mike_tkPersistent connection to PostgreSQL database
2009-08-29T07:02:43.120048-05:00mike_tkhttps://djangosnippets.org/snippets/1707/<p>Hi, </p>
<p>I made some small custom psycopg2 backend that implements persistent connection using global variable. With this I was able to improve the amout of requests per second from 350 to 1600 (on very simple page with few selects) Just save it in the file called base.py in any directory …</p>
Freely redistributable