求助,那位同学有看过这个视频 four sqlalchemy tips,可以贴下 Tips 吗?

2019-11-10 11:40:16 +08:00
 miniyao
光头老师的 video: four sqlalchemy tips,视频地址:youtu.be/5-4W3m5gRAs

今天的梯子挂了,国内好像还没搜到这个视频的搬运
860 次点击
所在节点    Flask
3 条回复
gwy15
2019-11-10 14:27:47 +08:00
复制粘贴:
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.
gwy15
2019-11-10 14:31:49 +08:00
另外提供自动生成的字幕
https://c-t.work/s/c6ef099beefe4f
miniyao
2019-11-10 14:38:41 +08:00
@gwy15 这个机翻的坑有点多

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/618078

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX