Skip to content

Commit

Permalink
Fixed #12715 -- Clarified the docs on the usage of database routers, …
Browse files Browse the repository at this point in the history
…especially regarding the default routing scheme. Thanks to Chris Curvey for the suggestion.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Jan 28, 2010
1 parent 70aee5b commit 7856a75
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/topics/db/multi-db.txt
Expand Up @@ -92,9 +92,14 @@ Automatic database routing
The easiest way to use multiple databases is to set up a database
routing scheme. The default routing scheme ensures that objects remain
'sticky' to their original database (i.e., an object retrieved from
the ``foo`` database will be saved on the same database). However, you
can implement more interesting behaviors by defining a different
routing scheme.
the ``foo`` database will be saved on the same database). The default
routing scheme ensures that if a database isn't specified, all queries
fall back to the ``default`` database.

You don't have to do anything to activate the default routing scheme
-- it is provided 'out of the box' on every Django project. However,
if you want to implement more interesting database allocation
behaviors, you can define and install your own database routers.

Database routers
----------------
Expand Down

0 comments on commit 7856a75

Please sign in to comment.