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? >
Use Django's CONN_MAX_AGE <https://docs.djangoproject.com/en/2.2/ref/databases/#persistent-connections> . Enjoy life, Adam -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c729ae25-c944-48d0-9c78-5bc8e569796a%40googlegroups.com.