Opened 16 years ago
Closed 16 years ago
#11798 closed (wontfix)
Django persistent psycopg2 database connection
Description ¶
Hi folks,
I've strugled with slow performance of django and found that the source is the all time reconnect to database, so I implemented the custom psycopg2 based database engine that improved the performance from 350 to 1600 requests per second (on small page with few SELECTs). To use it
just save the file base.py in any directory (e.g. postgresql_psycopg2_persistent) and set in settings
DATABASE_ENGINE to projectname.postgresql_psycopg2_persistent
Please let me know what you think.
Change History (2)
by , 16 years ago
comment:1 by , 16 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
The suggestion for any sort of connection pooling has been rejected several times, if you disagree with this I suggest making your case on the django-developers mailing list, for now closing as wontfix.