great, glad to know that new API is finding itself useful.
On Sun, Oct 22, 2023, at 9:32 PM, 'Tony Cosentini' via sqlalchemy wrote:
> do_orm_execute() (and freezing the results) totally allows for what I'm
> trying to do! Also I forgot to mention earlier, but this is only going to run
> in
do_orm_execute() (and freezing the results) totally allows for what I'm
trying to do! Also I forgot to mention earlier, but this is only going to
run in tests.
Thanks again for all the help,
Tony
On Friday, October 20, 2023 at 11:10:23 PM UTC+8 Mike Bayer wrote:
>
>
> On Fri, Oct 20, 2023, at
On Fri, Oct 20, 2023, at 10:46 AM, 'Tony Cosentini' via sqlalchemy wrote:
> Oh I see, thanks for clarifying.
>
> I'm trying to detect cases where we depend on the autoflush behavior. For
> example, in the sample above, when the query runs with no_autoflush, we won't
> get back any results
Oh I see, thanks for clarifying.
I'm trying to detect cases where we depend on the autoflush behavior. For
example, in the sample above, when the query runs with no_autoflush, we
won't get back any results (when previously we would get back one row).
It's a fairly large codebase, so I was trying
On Fri, Oct 20, 2023, at 9:50 AM, 'Tony Cosentini' via sqlalchemy wrote:
> Weird, I did try that but I can't seem to trigger it.
>
> Here's a self-contained test:
> https://gist.github.com/tonycosentini/4dee3478695d032ca67707b5e26739b6
the object was not affected in that query (that is, not
Weird, I did try that but I can't seem to trigger it.
Here's a self-contained test:
https://gist.github.com/tonycosentini/4dee3478695d032ca67707b5e26739b6
I have the event listener set to just crash, but it never triggers.
On Fri, Oct 20, 2023 at 9:20 PM Mike Bayer <
On Fri, Oct 20, 2023, at 8:08 AM, 'Tony Cosentini' via sqlalchemy wrote:
> Hi,
>
> Is there any way to listen for an event for when a query result gets merged
> into a pre-existing object in the session?
this is the refresh event:
Hi,
Is there any way to listen for an event for when a query result gets merged
into a pre-existing object in the session?
I'm working on disabling autoflush for some of our codebase (mostly to cut
down on queries on a high QPS path), but before doing that I want to write
a utility to detect