Replies: 1 comment 1 reply
-
there's no async API since the protocol itself is completely serial (you cannot get next page unless you parse current response). JDBC driver does provide some "async" over the HTTP Client by buffering results - that itself is one good reason to use the JDBC driver instead of client directly. JDBC also has well-defined semantics (and APIs) for interacting with the data - the client's serialisation format is not a stable API. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello folks,
We started using Trino JDBC driver to query Trino from a JVM application.
However I feel like there's no benefit in using the JDBC layer if under the hood it is "just" HTTP calls to Trino server. On the contrary it can lead to some overhead in terms of performance.
Am I missing something? Is there any benefit in using the JDBC layer?
I'll try but if anyone can confirm I'm not going in a wrong direction, I was thinking to implement something like this:
Last question: am I right that there's no async API exposed in trino-client?
Thanks for any comment :)
Beta Was this translation helpful? Give feedback.
All reactions