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 mapping over a very large table and so am using cursors (currently via pg-query-stream).
The SQL statement generated by the .select() shortcut doesn't work for streaming because jsonb_agg(...) is used to gather the result. I took a quick look at the code but it seems like it could be rather complicated to add cursor/streaming support, either to .select() or in general to SQLFragment<>.
Is this something you'd be interested in Zapatos supporting? If so, do you have any tips for implementation? Happy to take a crack at this.
The text was updated successfully, but these errors were encountered:
Hi Max. This is a nice idea, though not sure exactly what the API ought to be. I'll try to have a look at it in the next few days. Would be great if you're then happy to have a go at it!
I'm mapping over a very large table and so am using cursors (currently via
pg-query-stream
).The SQL statement generated by the
.select()
shortcut doesn't work for streaming becausejsonb_agg(...)
is used to gather the result. I took a quick look at the code but it seems like it could be rather complicated to add cursor/streaming support, either to.select()
or in general toSQLFragment<>
.Is this something you'd be interested in Zapatos supporting? If so, do you have any tips for implementation? Happy to take a crack at this.
The text was updated successfully, but these errors were encountered: