DB persistent connection

81 views
Skip to first unread message

Pratik Gajjar

unread,
Oct 26, 2020, 9:28:28 AM10/26/20
to Django developers (Contributions to Django itself)
https://groups.google.com/g/django-developers/c/rH0QQP7tI6w/m/yBusiFTNBR4J

We are running django with gunicorn + gevent. We have set Max con age to 10 min. We use newrelic for monitoring. 

Even though we have set it to use persistent connection it;s showing in new relic that
On average it takes 10ms for db connection
Screenshot 2020-10-26 at 3.54.08 PM.png

Florian Apolloner

unread,
Oct 26, 2020, 11:59:18 AM10/26/20
to Django developers (Contributions to Django itself)
Hi,

I am not sure what you are trying to tell us?! Opening a connection to Postgresql is somewhat time-consuming and 10ms in a cloud env does not seem to be surprising at all.

Cheers,
Florian
Reply all
Reply to author
Forward
0 new messages