Modifications of objects is reflected in the cache, but not in the persistence
takashiyonebayashi opened this issue · 4 comments
If an object is returned and is present in the cache, any changes to that object without a call to save are reflected in the cache, but not in the underlying persistence.
It should be decided what the desired behavior is.
How does the Ruby side handle this?
Doesn't ruby make the change when you change the model? If we want to
mirror that, every set and get call would perform a database update.
On Tue, Oct 11, 2011 at 3:37 PM, Bryan Duxbury <
reply@reply.github.com>wrote:
How does the Ruby side handle this?
Reply to this email directly or view it on GitHub:
https://github.com/bryanduxbury/jack/issues/31#issuecomment-2372213
No, ActiveRecord requires you to call save to persist stuff to the database.
On Tue, Oct 11, 2011 at 3:39 PM, Takashi Yonebayashi <
reply@reply.github.com>wrote:
Doesn't ruby make the change when you change the model? If we want to
mirror that, every set and get call would perform a database update.On Tue, Oct 11, 2011 at 3:37 PM, Bryan Duxbury <
reply@reply.github.com>wrote:How does the Ruby side handle this?
Reply to this email directly or view it on GitHub:
https://github.com/bryanduxbury/jack/issues/31#issuecomment-2372213Reply to this email directly or view it on GitHub:
https://github.com/bryanduxbury/jack/issues/31#issuecomment-2372249
I'm not sure how active record does it. Maybe check with Sean?
On Tue, Oct 11, 2011 at 3:41 PM, Bryan Duxbury <
reply@reply.github.com>wrote:
No, ActiveRecord requires you to call save to persist stuff to the
database.On Tue, Oct 11, 2011 at 3:39 PM, Takashi Yonebayashi <
reply@reply.github.com>wrote:Doesn't ruby make the change when you change the model? If we want to
mirror that, every set and get call would perform a database update.On Tue, Oct 11, 2011 at 3:37 PM, Bryan Duxbury <
reply@reply.github.com>wrote:How does the Ruby side handle this?
Reply to this email directly or view it on GitHub:
https://github.com/bryanduxbury/jack/issues/31#issuecomment-2372213Reply to this email directly or view it on GitHub:
https://github.com/bryanduxbury/jack/issues/31#issuecomment-2372249Reply to this email directly or view it on GitHub:
https://github.com/bryanduxbury/jack/issues/31#issuecomment-2372266