Re: Transaction APIs do not consult the DB router to choose DB connection

2021-05-27 Thread charettes
Ticket that directed to the mailing list for wider feedback https://code.djangoproject.com/ticket/32788 --- Can you think of places where this db_for_transaction hook would differ in any way from what db_for_write returns? That's what Django uses internally in such instances 1. ​

Transaction APIs do not consult the DB router to choose DB connection

2021-05-27 Thread N Aditya
>From the Django docs, for any ORM query made, the DB alias to use is determined by the following rules: - Checks if the using keyword is used either as a parameter in the function call or chained with QuerySet. - Consults the DB routers in order until a match is found. - Falls