On Jul 30, 2007, at 2:03 PM, robertz23 wrote:

>
> Yes, I'm making the flush() when I need to save the data.  The problem
> is when I try to see it, I mean, make like a select,
> creating the object and accessing its fields.
>
> Sometimes, my webservice gives me the value that I had before and
> sometimes, when I refresh the page several times
> it changes the value, between the old and new value, that I just saved
> in the DB through SqlAlchemy(using flush()).
>
> I think that I need a way to "delete" from memory this value or the
> object, so the next time I call this url, it gives
> me the value that is on the DB.
>

make sure youre using a brand new session on each web request.  dont  
recycle the stale data from the previous request.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to