求助,那位同学有看过这个视频 four sqlalchemy tips,可以贴下 Tips 吗? - V2EX
miniyao
·
2019-11-10
·
via Flask
这是一个创建于 2408 天前的主题,其中的信息可能已经有所发展或是发生改变。
 |
|
1
gwy15 2019 年 11 月 10 日
复制粘贴: 1st -> 1:33 -> when you should commit() your database session 2nd -> 7:20 -> three attributes of the session you probably don't know about (new, deleted, dirty) sounds great for all tracking of changes to objects 3rd -> 11:08 -> related to 2nd regarding when these 3 lists are cleaned and when the db session is cleared in Flask SQLAlchemy; remove() method of the session; how does it affect long-running tasks (e.g celery); be aware of memory usage 4th -> 14:09 -> nice way for handling db.session.remove() and keeping clean the session via context manager.
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。