I need to insert rows rows into a database, then in another thread read those rows and then (in a separate call delete them).
Normally I would just break out Entity Framework for this. But I need this to be fast. Really fast.
A row would be an bigint, bigint and a varchar(max).
Is there a faster way that Entity Framework? If so, what is it?
(I am going against SQL Server 2008 R2)
There is some good info on the Dapper ORM page about this.
See section Performance of SELECT mapping over 500 iterations – POCO serialization and below. It only discusses SELECTs, but you can extrapolate from this to a certain degree.
For example, you can see that Entity Framework is pretty much the worst way to go, in terms of query speed.