Django(2.1.5)とPostgre(9.6 Azure)を利用しているのですが、
Postgre側のActive Connections数がとても多くなってしまい困っております。(60~80程度に張り付いています。)
DjangoでModelを利用して接続しているのが原因でないかと思っていますが、解決方法が分かりません。(DBとのconnectionを明示的に切る必要がある?)
お知恵をお借りしたいです。
settings内のDBの設定情報は以下となっております。
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': '',
'USER': '(admin)',
'PASSWORD': '(admin)',
'HOST': 'sample.postgres.database.azure.com',
'PORT': '5432',
'CONN_MAX_AGE':0,
}
}

-- 
-----------------                       http://djangoproject.jp/                
         -----------------
You received this message because you are subscribed to the Google Groups 
"django-ja" group.
To post to this group, send email to django-ja@googlegroups.com
To unsubscribe from this group, send email to 
django-ja-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-ja
--- 
このメールは Google グループのグループ「django-ja」の登録者に送られています。
このグループから退会し、グループからのメールの配信を停止するには django-ja+unsubscr...@googlegroups.com 
にメールを送信してください。
このディスカッションをウェブ上で閲覧するには、https://groups.google.com/d/msgid/django-ja/785c3f6a-ee5b-4169-a9ab-0e80cec936b0%40googlegroups.com
 にアクセスしてください。

メールによる返信