Re: update_{FIELD_NAME} method to update only one field in a model.

2009-09-16 Thread Karen Tracey
On Wed, Sep 16, 2009 at 9:11 AM, Vladimir Prudnikov wrote: > Hello,The default behaviour for saving object is very hard for big models, > especially if it contain TextField. For example if I change one small field > in a model and that run save() method it will generate UPDATE query for all > of t

update_{FIELD_NAME} method to update only one field in a model.

2009-09-16 Thread Vladimir Prudnikov
Hello,The default behaviour for saving object is very hard for big models, especially if it contain TextField. For example if I change one small field in a model and that run save() method it will generate UPDATE query for all of the fields which is very slow. Instead of that I do it like that: p