Re: DATABASES setting for async usage

2022-02-01 Thread Carlton Gibson
Hey Andrew. Thanks for pushing this work. It's very cool! So... Andrew (Godwin)'s current PR blocks out the async interface for QuerySet. For now, it's a light-weight wrapper around the existing sync code, using sync_to_async to hand-off the DB o

Re: DATABASES setting for async usage

2022-01-31 Thread Andrew Wang
I'm thinking that for our purposes: 1. Because several Django projects need a migration from sync to async which requires time and resources, sync engines can specify a new key called ASYNC_DATABASE_ALIAS whose value is a string that is a database alias in the DATABASES dict. The

Re: DATABASES setting for async usage

2022-01-31 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Andrew, I'm afraid I don't know much about async, but I can point you at some recent changes. Andrew Godwin created a PR with the draft of the async ORM API. Carlton recently asked for tests: https://twitter.com/carltongibson/status/1486281689265545221 . Perhaps check out those PR's and see if