Performance of Inserts
Posted: Wed 22 Jun 2016 18:25
When inserting data into our tables LinqConnect creates code which follows the following pattern
INSERT INTO dbo.table (colNames)
VALUES (@p1);
SELECT rowid FROM dbo.table WHERE rowid = SCOPE_IDENTITY();
We are concerned about the performance of the Select statement. Is there are reason it is not just doing a "Select SCOPE_IDENTITY();" ?
Our database is becoming a bottle neck in our application and we need all the performance we can out of it.
INSERT INTO dbo.table (colNames)
VALUES (@p1);
SELECT rowid FROM dbo.table WHERE rowid = SCOPE_IDENTITY();
We are concerned about the performance of the Select statement. Is there are reason it is not just doing a "Select SCOPE_IDENTITY();" ?
Our database is becoming a bottle neck in our application and we need all the performance we can out of it.