Define a custom buffer size to streaming data to SQL Server #3788
Replies: 4 comments
-
|
@AugustoDeveloper There is no API that allows configuring this buffer size. You can refer to the streaming support documentation here. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, i already readed this doc... no much helpful for this case. Is there any chance in future to create some api for this?
|
Beta Was this translation helpful? Give feedback.
-
|
Have you benchmarked it and seen that the buffer size is a bottleneck? If so can you share the bench setup? |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I'll benchmark and bring the results.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, i have a question: Is there a way to define a custom buffer size to streaming data to SQL Server?
The code below uses a
Streamto insert a large file into column calledData. The file size is 800MB .I noticed when i run, the chunk size used to streaming is 4096 and cannot find a way to set a different size. Debugging the code i found the line where is create the buffer with a constant size:
https://github.com/dotnet/SqlClient/blob/fc514f6b8ffe0e0b664daaf5dad4f7f883a8a975/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParser.cs#L12872C12-L12880C55
Can you help me ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions