]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- gently push users towards entity name for simple cases
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 8 Dec 2010 04:11:47 +0000 (23:11 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 8 Dec 2010 04:11:47 +0000 (23:11 -0500)
examples/sharding/__init__.py

index 19f6db2459987e1cd5b8d49eca421ece265ac932..d4b4639494e906c00e7b3e2c93dc24b62e23818d 100644 (file)
@@ -1,4 +1,4 @@
-"""a basic example of using the SQLAlchemy Sharding API.
+"""A basic example of using the SQLAlchemy Sharding API.
 Sharding refers to horizontally scaling data across multiple
 databases.
 
@@ -14,7 +14,17 @@ The basic components of a "sharded" mapping are:
   Query ("query_chooser").  If it returns all shard ids, all shards will be 
   queried and the results joined together.
 
-In this example, four sqlite databases will store information about
-weather data on a database-per-continent basis.  We provide example shard_chooser, id_chooser and query_chooser functions.  The query_chooser illustrates inspection of the SQL expression element in order to attempt to determine a single shard being requested.
+In this example, four sqlite databases will store information about weather
+data on a database-per-continent basis. We provide example shard_chooser,
+id_chooser and query_chooser functions. The query_chooser illustrates
+inspection of the SQL expression element in order to attempt to determine a
+single shard being requested.
+
+The construction of generic sharding routines is an ambitious approach
+to the issue of organizing instances among multiple databases.   For a
+more plain-spoken alternative, the "distinct entity" approach 
+is a simple method of assigning objects to different tables (and potentially
+database nodes) in an explicit way - described on the wiki at 
+`EntityName <http://www.sqlalchemy.org/trac/wiki/UsageRecipes/EntityName>`_.
 
 """