Friday, 6 January 2017

Review of High-Performance Java Persistence by Vlad Mihalcea

Summary

A structured and clear read into Hibernate, JDBC and JOOQ. Plenty of useful tips and common pitfalls that will help you improve the performance of your data access. Heavily focused on relational models, so don't expect much on other types of data stores. Lots of examples to clarify points of discussion.

Why should you read it

If you are a java developer and have to deal with persistence, you probably have come across Hibernate and JPA. Unfortunately, writing a highly performant data access layer is difficult to get right. Similarly, bad data access patterns are difficult to tease out from an application once they have been implemented. This book describes some intricate details of JDBC, Hibernate and lightly covers JOOQ with the aim of high performance.

Useful topics

What actually gets executed when you use @OneToMany, @OneToOne, @ManyToOne, @ManyToMany

Which Identifier strategy should you use for your primary keys

How you should fetch entities from the Database and when

Statement batching and reordering

The various caches available, how they work and their problems

Consistency vs Performance with locking

Evaluation

I would highly recommend this book, whether you are new to the topic or have a fair understanding of Hibernate. I plan on using this as a desk reference for any future project.

really nice blog has been shared by you. before i read this blog i didn't have any knowledge about this but now i got some knowledge.so keep on sharing such kind of an interesting blogs.java training in chennai