The default value of the Maximum insert commit size is 2147483647, the largest value a 4 byte INT will hold.  This value is default set in SQL 2012+ but you need to set it manually in versions lower then 2012. In most cases you will leave this setting alone.

The value of 0 indicates that all data is committed in a single batch after all rows have been processed.

Committing everything in a single batch can have a very important impact on performance. Sometimes the impact is in the 60% to 70% improvement range. Unfortunately, it will adversely affect both the Temp DB and the transaction log. In isolation, this is a good idea. In a real world-wide situation with multiple processes running simultaneously, the impact on the Temp DB and transaction log can cause more pain than reducing load time.

This setting can really improve performance, but it requires a thoughtful and balanced approach to implementing it in production. In controlled situations, like nightly datawareouse loads, this can really help reduce your load times.

Frequently asked questions

What is the default value of Maximum insert commit size in SSIS?

The default is 2147483647, the largest value a 4 byte INT holds. SQL Server 2012 and later set it by default. In older versions you set it by hand. In most cases you leave it alone.

What does a Maximum insert commit size of 0 mean in SSIS?

It means SSIS commits all data in a single batch after it has processed all rows. That is the opposite of the default, which is the largest value a 4 byte INT holds.

Does a Maximum insert commit size of 0 make an SSIS load faster?

It can. The impact is sometimes a 60% to 70% improvement. The price is extra load on the TempDB and the transaction log.

When is it safe to commit all rows in one batch in SSIS?

In controlled situations, such as nightly data warehouse loads. With many processes running at the same time, the extra TempDB and transaction log load can cost more than the faster load saves.

What are the risks of setting Maximum insert commit size to 0?

It adversely affects both the TempDB and the transaction log. Use it with a thoughtful and balanced approach in production, not as a default.

Comments

Your email address is not shown. A photo comes from Gravatar, if you have one.