V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
miniyao
V2EX  ›  Flask

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

  •  
  •   miniyao · 2019-11-10 11:40:16 +08:00 · 843 次点击
    这是一个创建于 1838 天前的主题,其中的信息可能已经有所发展或是发生改变。
    光头老师的 video: four sqlalchemy tips,视频地址:youtu.be/5-4W3m5gRAs

    今天的梯子挂了,国内好像还没搜到这个视频的搬运
    3 条回复    2019-11-10 14:38:41 +08:00
    gwy15
        1
    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
        2
    gwy15  
       2019-11-10 14:31:49 +08:00
    另外提供自动生成的字幕
    https://c-t.work/s/c6ef099beefe4f
    miniyao
        3
    miniyao  
    OP
       2019-11-10 14:38:41 +08:00
    @gwy15 这个机翻的坑有点多
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3262 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:52 · PVG 19:52 · LAX 03:52 · JFK 06:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.