Read Patterns with Spring Data

Introduction This article is the third in a series about data access with Spring Data. Data Access with Spring Data Transaction Management with Spring Data Write Patterns with Spring Data Read Patterns with Spring Data Write Performance with Spring Data This time, we’ll look at how JPA entity mappings and fetch strategies affect database read performance. Object-relational mapping frameworks such as Hibernate provide a convenient way to work with relational data through Java objects. The SQL generated by Hibernate is not always obvious from the application code. Accessing a collection, navigating an association, or executing a repository method can result in additional queries, sometimes many more than expected. ...

October 27, 2026 · 18 min · Kai Niemi

Write Performance with Spring Data

Introduction This article is the fourth in a series about data access with Spring Data. Data Access with Spring Data Transaction Management with Spring Data Write Patterns with Spring Data Read Patterns with Spring Data Write Performance with Spring Data This time, we’ll look at how to improve write throughput when an application needs to insert, update, or delete large numbers of records. Persisting a single entity with Spring Data JPA is straightforward. Persisting thousands of entities efficiently requires more care. ...

October 27, 2026 · 19 min · Kai Niemi