You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm migrating a Rusqlite workflow when I'm doing some data transformation on a very large table. In a transaction, I use a prepared statement, loop over the results in a stream fashion and do an update for each row.
With SQLx and using a futures stream this does not seem possible. I suppose one option is to bulk get a set of records, and do my updates. Essentially paginating the job, but is there no one due to updates on the same tx streaming the results?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm migrating a Rusqlite workflow when I'm doing some data transformation on a very large table. In a transaction, I use a prepared statement, loop over the results in a stream fashion and do an update for each row.
With SQLx and using a futures stream this does not seem possible. I suppose one option is to bulk get a set of records, and do my updates. Essentially paginating the job, but is there no one due to updates on the same tx streaming the results?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions