Grails Bulk Insert Code repository of Ted Naleid blog post Batch Import Performance With Grails and MySQL This is a sample repository which illustrates how you can improve a bulk insert or update with Adequate database indexes Employ methods flush() and clear() to the session regularly, to control the size of the first-level cache. Read hibernate Session batching