#33496: mirror database in django
-------------------------------------+-------------------------------------
Reporter: M Hadi | Owner: nobody
Azarabad |
Type: New | Status: new
feature |
Component: Database | Version: 4.0
layer (models, ORM) | Keywords: multi-database /
Severity: Normal | mirror database
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hi. I'm looking for a solution to save data on mirror database. using
database routers allow us to save a record and let's us decide which
database must be used and i think manual database selection is not optimal
because it uses ORM to create raw SQL twice or more (based on number of
mirror database).
```
model_obj.save(using='db_1')
model_obj.save(using='db_2')
```
i think django can handle this problem and optimize it by adding setting
list variable called MIRROR_DATABASES so all mirror databases place in
there and django save all of records by creating one raw SQL if mirror
databases using the same backend
--
Ticket URL: <https://code.djangoproject.com/ticket/33496>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.2bf41bf37ab03a9bc61a2ac43d58d798%40djangoproject.com.