-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add delayLoadingLobs #1336
Add delayLoadingLobs #1336
Conversation
# Conflicts: # src/main/java/com/microsoft/sqlserver/jdbc/ISQLServerDataSource.java # src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java # src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDriver.java
src/main/java/com/microsoft/sqlserver/jdbc/ISQLServerDataSource.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerResource.java
Outdated
Show resolved
Hide resolved
(I'm adding this comment as a user that follows the project, but does not actively participate - if this is not the right place for this comment, please let me know) It would be good to document the intent of this API. Why would I, as a user of the driver, want to set the loadLargeObjects property? What are the benefits, and what are the downsides? Interacting with large volumes of large BLOBs is a tricky area in my experience, so a clear description of what this API intends to facilitate would be a good idea, methinks. I do agree with the comments from @peterbae regarding the naming, FWIW. |
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerResource.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are conflicts in the PR.
# Conflicts: # src/main/java/com/microsoft/sqlserver/jdbc/SQLServerResource.java
Hi @TarasTielkes , |
Adds a property delayLoadingLobs which will cause all LOB objects retrieved from the ResultSet to not be streamed.
The driver does this by setting a boolean on every LOB object when retrieved via a getter. This boolean is then used by the LOB object when users call stream getters.