Re: Queueing CTE

2022-10-07 Thread Jeremy Evans
On Fri, Oct 7, 2022 at 7:54 AM Bougy Man (bougyman) wrote: > I was trying to accomplish this on datasets and could not figure out the > magic. Using Model.with(:enqueued, Model.where(status: > 'ready').returning.update(status: 'processing')) does not work as expected > in this case. > > Here's

Queueing CTE

2022-10-07 Thread Bougy Man (bougyman)
I was trying to accomplish this on datasets and could not figure out the magic. Using Model.with(:enqueued, Model.where(status: 'ready').returning.update(status: 'processing')) does not work as expected in this case. Here's what I'm trying to replicate: ```with updated_notifications as (