• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

High Performance Java Persistence

 
Will Myers
Ranch Hand
Posts: 392
Java jQuery Scala
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vlad,
There's a commonly held view that JPA implementations are slow, presumably because the standard configuration needs tweaking, are there some common issues that you see time and again that make a big difference to performance?
 
Vlad Mihalcea
Author
Ranch Hand
Posts: 32
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I dedicated a whole book on this topic but the most common issues are:

Strictly related to JPA:

- fetching too much data
- not using batch insert/update/deletes
- using exotic mappings that cause ineffective queries
- improper caching settings that cause many invalidations and cache misses

Related to any data access layer:

- holding too much on connections
- not properly indexing the DB queries
- not using Statement caching
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic