sql

All things SQL and JDBC...
antonmos 2020-06-29T16:43:00.039600Z

@seancorfield it’s working!!

1
seancorfield 2020-06-29T16:47:53.040100Z

Thank you for testing that @antonmos

seancorfield 2020-06-29T16:48:06.040500Z

I'll cut 1.1.x later today!

1πŸ‘1❀️
antonmos 2020-06-29T19:12:01.041700Z

@seancorfield question about :auto-commit false in https://github.com/seancorfield/next-jdbc/blob/develop/doc/tips-and-tricks.md#streaming-result-sets-1 you say that it is required to stream results sets. We just tried it without that and it still seems to be working. Are there edge cases that are not apparent?

seancorfield 2020-06-29T19:22:24.042900Z

Streaming results is inherently database-specific @antonmos but also hasn't changed recently.

seancorfield 2020-06-29T19:23:04.043500Z

Mostly I wanted to check that the "final" version of fold-over-plan is still working for you.

seancorfield 2020-06-29T19:24:27.045100Z

Some DBs require auto-commit false, some don't. Some require fetch-size set to a negative value, some to a positive value. Some require specific concurrency and/or cursor settings, some don't. JDBC is a giant mess in terms of implementation, even tho' it's great as an API in theory.

seancorfield 2020-06-29T19:24:50.045600Z

(you should see all of the DB-specific conditionals scattered throughout the next.jdbc test suite!)

antonmos 2020-06-29T19:25:31.046Z

we are on postgres and it seems to be working without auto-commit

antonmos 2020-06-29T19:25:52.046200Z

will let you know if it keeps working or blows up later πŸ™‚ Β―\(ツ)/Β―

seancorfield 2020-06-29T19:31:02.046600Z

Interesting. Are you certain that you are indeed seeing streaming behavior?

seancorfield 2020-06-29T19:32:51.048700Z

Also, which version of PG are you using? Perhaps they've improved how PG does streaming (or how the JDBC driver does streaming) in more recent versions that than recommendation was required for? As I've said a few times, I don't use PG (except in a very limited way for testing c.j.j and next.jdbc) so I have to rely on what PG users tell me has been needed for them to achieve the behavior they want...

seancorfield 2020-06-29T23:32:15.051200Z

seancorfield/next.jdbc {:mvn/version "1.1.547"} -- the first 1.1 release! Supports multiple result sets, (parallel) foldable plan results, nested transaction control, find-by-keys enhancements (column selection, basic pagination), etc https://github.com/seancorfield/next-jdbc/releases/tag/v1.1.547 (not news to anyone here -- just making it official).

1πŸ’―1πŸ‘8πŸŽ‰