Did I find the right examples for you? yes no

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)

src/s/i/simplestore-0.3.1/simplestore/tests/test_sharding.py   simplestore(Download)
 
from simplestore import entities_table
from simplestore.index import Index
from simplestore.datastore import DataStore
 
        """)
 
        self.datastore.add_index(Index('index_user',
                                       properties=['username'],
                                       shard_on='username'))
 
        # distribute entries across shards based on user_id
        self.datastore.add_index(Index('index_user_entries',

src/s/i/simplestore-0.3.1/simplestore/tests/test_indexing.py   simplestore(Download)
import uuid
 
from simplestore.index import Index
from simplestore.tests import gen_uuid, User, Entry, DataStoreTestCase
 
 
        # store entities with the `username` property
        self.datastore.add_index(Index('index_user',
                                       properties=['username'],
                                       shard_on='username'))
 
        # store entities with the `user_id` property
        self.datastore.add_index(Index('index_user_entries',

src/s/i/simplestore-HEAD/simplestore/tests/test_sharding.py   simplestore(Download)
 
from simplestore import entities_table
from simplestore.index import Index
from simplestore.datastore import DataStore
 
        """)
 
        self.datastore.add_index(Index('index_user',
                                       properties=['username'],
                                       shard_on='username'))
 
        # distribute entries across shards based on user_id
        self.datastore.add_index(Index('index_user_entries',

src/s/i/simplestore-HEAD/simplestore/tests/test_indexing.py   simplestore(Download)
import uuid
 
from simplestore.index import Index
from simplestore.tests import gen_uuid, User, Entry, DataStoreTestCase
 
 
        # store entities with the `username` property
        self.datastore.add_index(Index('index_user',
                                       properties=['username'],
                                       shard_on='username'))
 
        # store entities with the `user_id` property
        self.datastore.add_index(Index('index_user_entries',