===Vyas Sanzgiri===
My Blog
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Vyas Sanzgiri wrote:I am surprised that few people are expert at SQL. I was taught SQL before Java and it is much easier than Java!
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Vyas Sanzgiri wrote:I am surprised that few people are expert at SQL. I was taught SQL before Java and it is much easier than Java!
Paul Sturrock wrote: "SQL" varies from database to database, so knowing SQL in Oracle 11 doesn't equate to knowing it in DB2 390 (for example)
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
ORMs are part of this trend as well. While raw JDBC is in theory, more efficient than using an ORM, I've seen some benchmarks indicating that in some cases, an ORM can provide twice the performance of raw JDBC.
Mike Keith wrote:
ORMs are part of this trend as well. While raw JDBC is in theory, more efficient than using an ORM, I've seen some benchmarks indicating that in some cases, an ORM can provide twice the performance of raw JDBC.
That's due to the ORM cache, a vastly underestimated (and sometimes misused) advantage of ORM
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Even Eager fetching doesn't necessarily mean you HAVE to scoop it all up at once. Just that the data has to be there when it's expected.
SCJP 1.5, SCEA, ICED (287,484,486)
Paul Sturrock wrote:JPA supports second level caching. Not sure how this helps when working with a large number of object - trying to cache large numbers of anything tends to shift the bottleneck to available memory (though of course, second level cache implementation may use a different persistent store).
===Vyas Sanzgiri===
My Blog
Vyas Sanzgiri wrote:
Paul Sturrock wrote:JPA supports second level caching. Not sure how this helps when working with a large number of object - trying to cache large numbers of anything tends to shift the bottleneck to available memory (though of course, second level cache implementation may use a different persistent store).
Been there! It was terrible. My server used to crash every 2 hours! I had no clue what was going on. Looks like it is not trivial to make it use a different persistent store
Paul Sturrock wrote:
Vyas Sanzgiri wrote:
Paul Sturrock wrote:JPA supports second level caching. Not sure how this helps when working with a large number of object - trying to cache large numbers of anything tends to shift the bottleneck to available memory (though of course, second level cache implementation may use a different persistent store).
Been there! It was terrible. My server used to crash every 2 hours! I had no clue what was going on. Looks like it is not trivial to make it use a different persistent store
Which caching implementation were you using? My experience is you can quite easily declaratively change where a cache manages its data.
===Vyas Sanzgiri===
My Blog
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|