Re: Django Channels persistent DB connection

2019-11-15 Thread Adam Hooper
On Friday, November 15, 2019 at 2:02:51 PM UTC-5, ajoeiam wrote: > > If I want a connection to the database but want it for only the time > the customer (query source) is logged in - - - how do I specify that? > (So I don't want the connection to be timed - - - would rather the > connection

Re: Django Channels persistent DB connection

2019-11-15 Thread o1bigtenor
On Fri, Nov 15, 2019 at 12:53 PM Adam Hooper wrote: > > 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

Re: Django Channels persistent DB connection

2019-11-15 Thread Adam Hooper
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 >

Re: Django Channels persistent DB connection

2019-10-30 Thread BR
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)

Django Channels persistent DB connection

2019-10-30 Thread BR
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