narrow writes (as 3rd-party library)

2014-07-16 Thread Jeremy Dunck
I'm attempting to implement narrow writes (that is, writing only fields which have changed). I would be able to do this as a 3rd-party Mixin library if some changes were made to Model.save_base. 1) returned whether the row was created or updated, e.g. if .save_base returned the `updated` value

Re: narrow writes (as 3rd-party library)

2014-07-16 Thread Loic Bistuer
On Jul 17, 2014, at 5:16 AM, Jeremy Dunck wrote: > 1) returned whether the row was created or updated, e.g. if .save_base > returned the `updated` value which it uses to send the .post_save signal. > 2) raise something finer-grained than DatabaseError when force_update is > used (so that I

Re: narrow writes (as 3rd-party library)

2014-07-16 Thread Russell Keith-Magee
On Thu, Jul 17, 2014 at 6:16 AM, Jeremy Dunck wrote: > I'm attempting to implement narrow writes (that is, writing only fields > which have changed). > > I would be able to do this as a 3rd-party Mixin library if some changes > were made to Model.save_base. > > 1) returned whether the row was