Changes between Version 21 and Version 22 of MultipleDatabaseSupport
- Timestamp:
- Sep 12, 2008, 2:13:31 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MultipleDatabaseSupport
v21 v22 11 11 * '''Talking to existing or legacy databases''' while still allowing newer functionality to be developed on a different database dedicated solely to Django. 12 12 * '''Sharding''', where rows within a single model are spread across multiple databases for improved write performance. 13 * '''Moving models between databases''' - e.g. for converting from MySQL to Postgres, or for shuffling items between shards. 13 14 14 15 == Problems to solve == … … 19 20 * '''Related managers''' - how do we deal with the case when the User model lives on one database but its related BlogEntrys live on a different database? 20 21 * '''Joins across different databases''' - do we try to get these working? If not, how do we detect them and what kind of error or warning do we present? 22 * '''Should models be aware of which database they were loaded from?''' - if so, model.save() will be able to automatically remember the correct database connection. The ability to over-ride this (e.g. with `model.save(using='archive')`) would be useful for moving models between databases. 21 23 22 24 == Implementations ==