yiisoft/yii — pull request #1223 by DaSourcerer (2012-08-14 09:50:52+00:00)
Title: Dirty ActiveRecord Attributes

This PR implements dirty attributes for active records: If attributes are changed, they will be marked as "dirty". Only those will then be written to the database on `save()` calls. This is potentially saving a great deal of cpu time when this mechanism prevents indexed fields from being filled with an unaltered value.

This has been very simple to implement, hence I'm a bit sceptical about this myself. However, I haven't found any regressions since I got this into workable state. Also, all [tests are passing](http://travis-ci.org/#!/DaSourcerer/yii/builds/2116739). If this doesn't get pulled in, at least provide a brief comment.