How to disable caching correctly in Sqlalchemy orm session?

前端 未结 4 504
执笔经年
执笔经年 2021-01-19 12:48

I have I thread in a daemon, that loops and performs the following query:

    try:
        newsletter = self.session.query(models.Newsletter).\\
                     


        
4条回答
  •  长发绾君心
    2021-01-19 13:13

    SQLAlchemy doesn't cache on itself. Unless you explicitly implemented a cache, like this one.

    Pass echo=True to your sessionmaker and look into the logging output.

提交回复
热议问题