Pavel Vlasov
Pavel Vlasov

Reputation: 4341

Effecient way to update a large set of objects with Hibernate?

What are the principles of efficient select'n'update of large sets of objects via Hibernate?

I believe stored procedures or the single update query could be much more effective than dealing with each object separately but I want no use them now. I'm using Grails 2.2 actually.

Upvotes: 0

Views: 228

Answers (1)

mindas
mindas

Reputation: 26733

Have a look at batch updates, they were designed for exactly this purpose.

Upvotes: 1

Related Questions