Wednesday, October 30, 2019

Re: Django Channels persistent DB connection

I should add: My interest would be to have a DB connection that lasts the lifetime of the parent consumer. Does it already do this, and am I imagining things?

On Wednesday, October 30, 2019 at 12:17:54 PM UTC-4, BR wrote:
I moved from a local sqlite3 DB file to a shared remote (local LAN) MariaDB server and noticed a bit of a slow down. On top of the DB now being remote, I'm also using SSL to encrypt the DB information. Based on the description of database_sync_to_async it sounds like the connection is closed/cleaned up on each call.

Is there an option for a persistent DB connection in Channels?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bcacfbad-e250-4133-be15-4de78a3fe555%40googlegroups.com.

No comments:

Post a Comment