zy-kkk opened a new pull request, #22032:
URL: https://github.com/apache/doris/pull/22032

   
   ## Proposed changes
   
   Issue Number: close #xxx
   
   When useBulkCopyForBatchInsert=false, the JDBC driver will not use SQL 
Server's Bulk Copy API for batch insertions. Thus, during the batch insertion 
process, each insert statement needs to be individually sent to the SQL Server, 
leading to a higher number of network roundtrips. Network latency could 
potentially become a significant factor contributing to performance 
degradation. For this reason, we recommend setting this parameter to true by 
default to enhance the performance of PreparedStatement batch insertions.
   
   In this manner, when performing batch insertions, the JDBC driver will send 
all insertion data to SQL Server in one go via the Bulk Copy API, rather than 
sending each insert statement individually. This can significantly reduce the 
number of network roundtrips, thereby improving performance.
   
   Please note that this option is only effective for fully parameterized 
INSERT statements. If your INSERT statement is mixed with other SQL statements, 
or if it contains values specified directly in the statement, then the JDBC 
driver will not use the Bulk Copy API, but instead will use the standard insert 
method.
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to