Should I avoid using unnecessary db transactions (django+postgresql environment)?

前端 未结 0 538
后悔当初
后悔当初 2020-12-31 19:41

I\'m using Django, using a Postgres DB, and I wonder: say I have a function like this:

def yay_func(obj):
    log(\'yay\')
    obj.is_yay = True
    obj.save(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题