High-Performance Java Persistence – Chapter 14 – Batching

Part 2, Chapter 14

Every new chapter of my book is released right after it’s being completed, so the reader doesn’t have to wait for the whole part to be finished to get access to new material.

Table of content

This chapter explains how batch updates work in Hibernate.

14. Batching
14.1 Batching insert statements
14.2 Batching update statements
14.3 Batching delete statements

Chapter summary

Batch updates can have a great impact on data access layer performance, and Hibernate makes it very easy to switch from non-batchable statements to batched PreparedStatement(s). In this chapter, I explain how you can enable JDBC batching for insert, update, and delete statements.

Because setting the hibernate.jdbc.batch_size configuration property is not always enough, I also explain how statement ordering can leverage JDBC batching when using entity state cascading.

Aside from writing this chapter, I managed to review all the previous chapters for typos and grammar issues, thanks to using Grammarly.

Previously, I was relying on Office for correcting grammar issues, but, although it definitely helped me, I noticed that it was not enough. For this purpose, I purchased a Grammarly subscription and went through all the previous chapters for fixing typos and other grammar-related problems.

Enjoy reading it and I’m looking forward to getting your feedback.

Enter your email address to follow this blog and receive notifications of new posts by email.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s