Saturday, September 12, 2009

กรณีการ insert ข้อมูลใน Grails แล้ว OutOfMemoryError

แสดงตัวอย่างการ insert ข้อมูลจำนวนมากใน Grails แล้วจะช้ามาก และจะเกิด OutOfMemoryError สามารถแก้ไขโดยการsessionFactory.getCurrentSession().clear(); ตามลิงค์นี้
Grails, Inserting lots of data using withTransaction results in OutOfMemoryError

No comments:

Post a Comment