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
合并sql语句,只打开一次数据库连接.
存在的问题: 要控制执行的SQL语句大小
通过参数化和“Insert...Select”的SQL语句,一次性插入所有记录
存在的问题:
通过SqlBulkCopy机制,快速的将待保存数据一次性插入到数据库的临时表,SQL语句通过关联临时表进行批量新增、修改、删除
参考文章:
如何解决大批量数据保存的性能问题
The text was updated successfully, but these errors were encountered:
No branches or pull requests
方案1
合并sql语句,只打开一次数据库连接.
存在的问题:
要控制执行的SQL语句大小
方案2
通过参数化和“Insert...Select”的SQL语句,一次性插入所有记录
存在的问题:
方案3
通过SqlBulkCopy机制,快速的将待保存数据一次性插入到数据库的临时表,SQL语句通过关联临时表进行批量新增、修改、删除
参考文章:
The text was updated successfully, but these errors were encountered: