Re: [sqlalchemy] Dogpile session caching

2023-08-02 Thread Mike Bayer
I will note, in case you didn't see it, that in SQLAlchemy 1.4 (as well as in 2.0) the caching mechanics themselves have changed compared to what they were in SQLAlchemy 1.3. This change was first made in the 1.4 series to use the new do_orm_execute() event model, whereas previously in 1.3 ther

Re: [sqlalchemy] Dogpile session caching

2023-08-02 Thread Mike Bayer
I've just updated them to use new style queries. There were no issues and all the examples work by switching `Session.query(Thing)` for `Session.scalars(select(Thing))`. The examples will be on the site within an hour but you can see the changes made in https://github.com/sqlalchemy/sqlal

[sqlalchemy] Dogpile session caching

2023-08-02 Thread 'Joe Black' via sqlalchemy
Hello, First of all, excellent project! It's such a powerful tool when you really master the internals, and after several years I think I'm nearing that point. My question today is related to the dogpile caching example