我想知道dbConnection何时打开
考试 遵循逻辑 是否等待数据库连接到external_api_call
还是不?
@transaction.commit_manually
def do_something():
# 1. now db connection open?
# api_call
response= requests.get(~~~~)
# 2. or db connection opened here?
aa= User.objects.get(id=1)