mysql - django database delta update -


say want perform following:

"update main_post set votes = votes+1 post_id = xxx"

such delta update needed deal concurrency issues. or there alternative solve concurrency issue?

does django in way support delta update out of box?

* answer * use f object in django

use f object in django. refer docs


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -