I've got some triggers that fire on insert that is used to push a copy of each inserted record into an audit database. Lately, inserts into a particular table have started to bog down considerably (~7 seconds per row!).
Data is inserted into the table row-by-row (order picking detail records [where stuff was picked for ), and the on-insert trigger does an "INSERT INTO otherdb..table (fields) SELECT fields FROM inserted" (no where clause or joins).
When running a batch that inserts just 12 records, it takes nearly 90-seconds just to complete the audit triggers.
Any help would be greatly appreciated!
Data is inserted into the table row-by-row (order picking detail records [where stuff was picked for ), and the on-insert trigger does an "INSERT INTO otherdb..table (fields) SELECT fields FROM inserted" (no where clause or joins).
When running a batch that inserts just 12 records, it takes nearly 90-seconds just to complete the audit triggers.
Any help would be greatly appreciated!