Tags
AeroGear
Arquillian
Bean Validation
Byteman
CDI
Caching
Ceylon
Commonhaus
Community
Develocity
Discussions
Eclipse
Elasticsearch
Events
GitHub
HANA
Hibernate Data Repositories
Hibernate OGM
Hibernate ORM
Hibernate Reactive
Hibernate Search
Hibernate Shards
Hibernate Tools
Hibernate Validator
Hiring
Infinispan
Interview
JBoss AS
JBoss Asylum
JBoss Forge
JBoss Tools
JPA
JSF
JSON
JSR 352
Jakarta Data
Jakarta EE
Jakarta Persistence
Java EE
Lucene
MongoDB
MongoDB Extension
Newsletter
Off topic
Performance
PicketLink
Quarkus
Releases
Rich Faces
Seam
Security
Supply Chain
Weld
WildFly
asylum
git
minishift
swarm
Authors
In our previous post,
we showed how @Mutability(Immutability.class) and removing CascadeType.MERGE cut our JSON processing time in half by eliminating unnecessary dirty-checking.
That was the first round of optimization. This post covers the second round enabling Hibernate’s second-level cache on the same entity, and the surprising
discovery that three annotations must work together to unlock the full benefit. Getting two out of three still left us over 8x slower than the final result.