Home
Sign Up
Sign In
V2EX
›
SQLAlchemy
sqlalchemy 批量更新(非主键)有什么其他好方法吗?
Raul7
·
Jan 6, 2021
· 2739 views
You need to sign in to view this topic
This topic created in 2139 days ago, the information mentioned may be changed or developed.
有一个 dict 的列表,想批量 update 数据库。表里的主键是 id,但是判断唯一是用的另外一个字段。
循环 list 一条条更新效率不高,请教下是否有其他好方法?
No Comments Yet
主键
批量
dict
SQLAlchemy
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
894 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 19:22
·
PVG 03:22
·
LAX 11:22
·
JFK 14:22
♥ Do have faith in what you're doing.
❯