Andrey Plotnikov pisze: > Hi, > > Is it safe to cache objects getting from sqlalchemy session query in > beaker cache? > > I was done that but in that way I loose connection with sqlalchemy (Session) so
from ... import User from ... import t_user mapper(User, t_user, properties={ 'roleList': relation(Role, backref='userList')}) us = User() #us -> to backer_cache now if you want us.roleList you get error and if you change us.username = 'other_name' Session.commit() then it not affected any change Above is only my experience. Best Regards, Tomek --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---