Grails Cookbook - A collection of tutorials and examples

Improving Performance of Large Batch Insert

Sometimes we need to insert large number of rows to the database. (For example: transferring data from external source to our database). It is preferable that performance is fast and the expected time to finish is proportional to the number of rows to be inserted.