Join GitHub today
attr_readonly support + LOB dirty checking #118
We ran into some strange deadlocking problems in our app, and it turns out they were caused by OCI streaming CLOB data on every AR save irrespective of whether it had changed. My first thought was to attr_readonly the field, but the adapter didn't look at that setting, either.
So this makes attr_readonly work with LOB data and also doesn't stream LOBs back into the DB unless they've changed.
Should we also make the dirty checking dependent on AR partial updates being turned on? I have mixed feelings about this, but it would be pretty easy to do.