We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
8.4.1
15
Ubuntu 20
11
N/A
There is alloc of char and byte arrays/buffers on every writeReader invocation:
mssql-jdbc/src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
Line 4099 in 8c0d32b
Call SQLServerBulkCopy#writeToServer many times
The text was updated successfully, but these errors were encountered:
Hi @vyaslav , Thank you for the contribution. The team will review the PR and get back to you.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Driver version
8.4.1
SQL Server version
15
Client Operating System
Ubuntu 20
JAVA/JVM version
11
Table schema
N/A
Problem description
There is alloc of char and byte arrays/buffers on every writeReader invocation:
mssql-jdbc/src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
Line 4099 in 8c0d32b
We use SQLServerBulkCopy to write data from file to SQL Server and it yields few GiB/s of mem allocations.
char/byte buffer is created once per TDSWriter and reused on subsequent writes
char and byte arrays/buffers on every writeReader invocation
JDBC trace logs
Reproduction code
Call SQLServerBulkCopy#writeToServer many times
The text was updated successfully, but these errors were encountered: