I found an article by Sam Saffron on bulk inserting with Dapper
(That annoying insert problem getting data into the db using dapper) where he ends the article with the statement:
For example, if you need an ultra fast way to insert lots of stuff into a SQL DB, nothing is going to beat SqlBulkCopy and you are going to need a custom API for that.
The article is over 4 years old.
I recently have stumbled across Dapper Plus which claims to be able to do 1,000,000 rows in 2,000ms which would appear to outperform SqlBulkCopy
based on many old performance articles I found (such as this one - Evaluating ORMs for batch data).
My Google-fu has unfortunately failed in finding more recent performance comparisons between these two bulk import methods.
Question: Is SqlBulkCopy
still faster than Dapper.NET
?