Re: [sqlalchemy] Re: sqlalchemy caching

2010-06-01 Thread Michael Bayer
On Jun 1, 2010, at 1:14 AM, David wrote: Thanks for the response, Michael. Sorry, I forgot to mention how we are committing the data. Here is a skinned-down version of the code that returns old data when switching between web servers. engine = sqlalchemy.create_engine(ALCHEMY_DATABASE)

[sqlalchemy] Re: sqlalchemy caching

2010-06-01 Thread David
Oops, the line user_data = user.get('USERID') should have read user_data = user_query.get('USERID') For now, we're just going to stick with calling session.refresh after each get. Thanks for the help. -David On Jun 1, 11:08 pm, Michael Bayer mike...@zzzcomputing.com wrote: On Jun 1, 2010,

[sqlalchemy] Re: sqlalchemy caching

2010-05-31 Thread David
Thanks for the response, Michael. Sorry, I forgot to mention how we are committing the data. Here is a skinned-down version of the code that returns old data when switching between web servers. engine = sqlalchemy.create_engine(ALCHEMY_DATABASE) Session =