SQL fast INSERT without UPDATE

We use a single audit table in the SQL Server 2008 database.

The architecture with one table works beautifully, is easily requested, takes into account changes in the scheme.

But this is a serious bottleneck for the entire database. All INSERTS and UPDATES must pass the audit chart.

We already use the NOLOCK HINT statements for SELECT.

Since there is no UPDATE in this table, are there any suggestions for improving the performance of INSERT statements?

+5
source share
3 answers

Make sure you have the main clustered INT (or BIGINT) IDENTITY index in the table! And, preferably, no other indexes (if possible) - this will slow down the insertion.

, , INSERT - , "" .

SQL Server, :

( "" ), . , IAM/PFS , ( , ). (CL) .

, right , ( ), , (INT BIGINT) ( , , ).

, - /, 100% FILLFACTOR , SQL-.

+4

, , :

  • ,
  • ,
  • View sproc. , . PK .. FK .
  • , : + .
  • "" . . . / , join union "" "".
+2

, , .

0
source

All Articles