Is it possible to get working django transaction with django multiple databases
85 views
Skip to first unread message
Juan Jose Huelga
unread,
Jun 16, 2014, 9:46:11 AM6/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hi there. I'm trying to get a django site working with multiple
databases, it means a DB1 for django site an another existing DB2 (say
a legacy BD) but I need transactions enabled. I need to run queries
over BD2 that depends on queries over DB1 and the other way around. If
any of these queries fail, I need to rollback all operations.
I have read Django's documentation regarding Multiple databases and
Transactions, but it is not clear to me if Django support transactions
on Multiple databases.
Best Regards.
Ilya Kazakevich
unread,
Jun 16, 2014, 12:10:01 PM6/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
I believe you need software that supports distributed transaction coordination protocols ("X/Open XA" Is good example) and both DBs should support this protocol and two-phase commit.