~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to examples/sharding/attribute_shard.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
 
110
110
    given a primary key, returns a list of shards
111
111
    to search.  here, we don't have any particular information from a
112
 
    pk so we just return all shard ids. often, youd want to do some
 
112
    pk so we just return all shard ids. often, you'd want to do some
113
113
    kind of round-robin strategy here so that requests are evenly
114
114
    distributed among DBs.
115
115