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/713d292b-def8-4339-a277-f356ba7f23fc%40googlegroups.com.
No comments:
Post a Comment