Skip to content
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

Make buffer size configurable via properties file #2999

Conversation

wegendt-bosch
Copy link

Fixes #2957.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

@davecramer
Copy link
Member

The README needs to be updated with the new property and the docs/content/documentation/use.md

README.md Outdated
@@ -112,7 +112,7 @@ In addition to the standard connection parameters the driver supports a number o
| binaryTransfer | Boolean | true | Use binary format for sending and receiving data if possible. Setting this to false disables any binary transfer |
| binaryTransferEnable | String | "" | Comma separated list of types to enable binary transfer. Either OID numbers or names |
| binaryTransferDisable | String | "" | Comma separated list of types to disable binary transfer. Either OID numbers or names. Overrides values in the driver default set and values set with binaryTransferEnable. |
| prepareThreshold | Integer | 5 | Statement prepare threshold. A value of -1 stands for forceBinary |
| binaryTransferBufferSize | Integer | 4096 | Size of buffers for copying inputs to outputs in case of OID creation using Blobs. |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it relate to all the binary transfers or for blobs only?
If the parameter is related to blobs only, I would expect the name to contain something like blob or large object or something like that.

I suggest we start tracking @since 42.7.1 so the reader can see which parameters are supported in what versions

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its only for blobs, yes. binaryTransferBlobBufferSize?

@wegendt-bosch wegendt-bosch force-pushed the bugfix/2957-add-configuration-property-for-buffer-size branch from ee891fc to 1dda743 Compare November 30, 2023 09:06
@vlsi
Copy link
Member

vlsi commented Dec 4, 2023

@wegendt-bosch , thank you for the contribution, however, I am not merging this right now as adding properties requires putting more effort into naming, documentation, and maintenance.

I think the vast majority of Blob and LargeObject performance issues would be fixed by #3044, and it won't require users to tune the parameters.

It would be great if you could test #3044 in your setup.

@wegendt-bosch
Copy link
Author

Yup, that also fixes the performance issues for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Poor Blob performance over high latency connection
3 participants