markrendle / Simple.Data

A light-weight, dynamic data access component for C# 4.0
MIT License
1.33k stars 303 forks source link

Bulk insert does not fire triggers, forcing slow performance. #257

Closed ChristianTrolleMikkelsen closed 11 years ago

ChristianTrolleMikkelsen commented 11 years ago

It is standard behaviour that BULK inserts do not fire triggers:

http://msdn.microsoft.com/en-us/library/ms187640(v=sql.105).aspx

However we REALLY need to be able to enable this.

Could you please make a modification which allows this. Something like EnableTriggersOnBulk = true or whatever you find more logical :).

Without it we need to do single inserts in a tx and its killing performance big time.