Behavior of the "update" in Django 1.7

19 views
Skip to first unread message

Fabio C. Barrionuevo da Luz

unread,
Sep 22, 2014, 3:41:41 PM9/22/14
to django...@googlegroups.com
Hello. Some questions.

Walking through projects on github i found django-save-the-change[1]

Interesting project. But what django-save-the-change[1] proposes to do is still valid for Django 1.7? 

I think it would be good practice to only touch in the fields in the database in which there really was a change.

Using or not using this solution, makes difference in performance when I have millions of transactions per minute in the database?


--
Fábio C. Barrionuevo da Luz
Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins - FACTO
Palmas - Tocantins - Brasil - América do Sul


Blog colaborativo sobre Python e tecnologias Relacionadas, mantido totalmente no https://github.com/pythonclub/pythonclub.github.io .

Todos são livres para publicar. É só fazer fork, escrever sua postagem e mandar o pull-request. Leia mais sobre como publicar em README.md e contributing.md.
Regra básica de postagem:
"Você" acha interessante? É útil para "você"? Pode ser utilizado com Python ou é útil para quem usa Python? Está esperando o que? Publica logo, que estou louco para ler...

Collin Anderson

unread,
Sep 23, 2014, 8:27:15 AM9/23/14
to django...@googlegroups.com
If nothing else, if you know which field you edited, you can just save those field using: obj.save(update_fields=['field1', 'field5'])

Reply all
Reply to author
Forward
0 new messages