Monday, March 24, 2008

MySQL Cluster support for Django

Ivan Sagalaev has created a mysql_cluster database backend for Django, which allows you to configure master and slave servers, and then specify which should be used on given view with Python decorators. Found via del.icio.us and Simon Willison's blog.

2 comments:

Stewart Smith said...

hrrm... rather confusing name as it's a "MySQL Cluster" backend but it backs on to a replication setup and not a MySQL Cluster backend. hrrm..

Andy Dustman said...

Stewart: You are correct. To use the MySQL Cluster (NDB) from Django, you only need to use the regular backend. This is a rw-master/ro-slave(s) replication setup. However one could argue that this sort of replication scheme is a type of cluster; it's just not what MySQL AB means by the term.

MySQL/Python Video

Loading...