Hello again,
I'm getting errors in a certain case which lead me to suspect that I'm
missing some big picture sharding concept, so to better understand
sharding I'm playing with the SQLAlchemy sharding unit tests
(sqlalchemy/test/orm/sharding/test_shard.py).
Here's one of the investigative tests
diana wrote:
Hello again,
I'm getting errors in a certain case which lead me to suspect that I'm
missing some big picture sharding concept, so to better understand
sharding I'm playing with the SQLAlchemy sharding unit tests
(sqlalchemy/test/orm/sharding/test_shard.py).
Here's one of the
A, deferred (new to me), thanks!
in sqlalchemy/test/orm/sharding/test_shard.py:
mapper(WeatherLocation, weather_locations, properties={
'reports':relation(Report, backref='location'),
'city': deferred(weather_locations.c.city),
})
When I comment
Again, this investigative test is loosely based on SQLAlchemy's
sharding test: sqlalchemy/test/orm/sharding/test_shard.py
def test_update(self):
print \n
session = create_session()
query = session.query(WeatherLocation)
# query_chooser returns: ['asia']
Diana Clarke wrote:
Again, this investigative test is loosely based on SQLAlchemy's
sharding test: sqlalchemy/test/orm/sharding/test_shard.py
def test_update(self):
print \n
session = create_session()
query = session.query(WeatherLocation)
#
Thanks, Michael.
This will take me a bit to digest, and I'm about to start the second
shift as wife and mother... tomorrow maybe.
Thanks again for the quick responses -- greatly exceeding expectations!
Cheers,
--diana
On Mon, Jan 11, 2010 at 5:14 PM, Michael Bayer mike...@zzzcomputing.com