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. ...