g*l
2 楼
有了spring/hibernate,还有人直接用JDBC写database application code吗?
s*e
4 楼
of course if you really care about your app performance.
ORM tools are never good for batch updates/insertions/deletions. They are
not designed to provide you performance. They are designed to simplify your
current and future development process.
ORM tools are never good for batch updates/insertions/deletions. They are
not designed to provide you performance. They are designed to simplify your
current and future development process.
g*g
6 楼
That's not exactly true. ORM allows a simple way to do caching,
that can reduce DB hits in many cases. Of course an ORM generated
SQL batch cannot beat carefully hand-written ones, but there's a
reason stored procesure is not popular these days.
your
【在 s******e 的大作中提到】
: of course if you really care about your app performance.
: ORM tools are never good for batch updates/insertions/deletions. They are
: not designed to provide you performance. They are designed to simplify your
: current and future development process.
that can reduce DB hits in many cases. Of course an ORM generated
SQL batch cannot beat carefully hand-written ones, but there's a
reason stored procesure is not popular these days.
your
【在 s******e 的大作中提到】
: of course if you really care about your app performance.
: ORM tools are never good for batch updates/insertions/deletions. They are
: not designed to provide you performance. They are designed to simplify your
: current and future development process.
s*e
8 楼
Well if that is the case you can write your own query object pattern with
cache to do it.
Did I mention SP? I did not get it.
cache to do it.
Did I mention SP? I did not get it.
r*l
16 楼
This always comes down to flexibility vs standard/convention. A real good
developer can take advantage of straight JDBC's flexibility and write good
code that outperforms Hibernate. However, real good developers are rare and
for most of us, using Hibernate will yield better results.
【在 g*****g 的大作中提到】
: That's not exactly true. ORM allows a simple way to do caching,
: that can reduce DB hits in many cases. Of course an ORM generated
: SQL batch cannot beat carefully hand-written ones, but there's a
: reason stored procesure is not popular these days.
:
: your
developer can take advantage of straight JDBC's flexibility and write good
code that outperforms Hibernate. However, real good developers are rare and
for most of us, using Hibernate will yield better results.
【在 g*****g 的大作中提到】
: That's not exactly true. ORM allows a simple way to do caching,
: that can reduce DB hits in many cases. Of course an ORM generated
: SQL batch cannot beat carefully hand-written ones, but there's a
: reason stored procesure is not popular these days.
:
: your
T*g
18 楼
don't think so. Take Hibernate for example, stateless session is
specifically designed for batch processing, which will by pass the session
level cache and second level cache.
your
【在 s******e 的大作中提到】
: of course if you really care about your app performance.
: ORM tools are never good for batch updates/insertions/deletions. They are
: not designed to provide you performance. They are designed to simplify your
: current and future development process.
specifically designed for batch processing, which will by pass the session
level cache and second level cache.
your
【在 s******e 的大作中提到】
: of course if you really care about your app performance.
: ORM tools are never good for batch updates/insertions/deletions. They are
: not designed to provide you performance. They are designed to simplify your
: current and future development process.
g*l
22 楼
有了spring/hibernate,还有人直接用JDBC写database application code吗?
s*e
24 楼
of course if you really care about your app performance.
ORM tools are never good for batch updates/insertions/deletions. They are
not designed to provide you performance. They are designed to simplify your
current and future development process.
ORM tools are never good for batch updates/insertions/deletions. They are
not designed to provide you performance. They are designed to simplify your
current and future development process.
g*g
25 楼
That's not exactly true. ORM allows a simple way to do caching,
that can reduce DB hits in many cases. Of course an ORM generated
SQL batch cannot beat carefully hand-written ones, but there's a
reason stored procesure is not popular these days.
your
【在 s******e 的大作中提到】
: of course if you really care about your app performance.
: ORM tools are never good for batch updates/insertions/deletions. They are
: not designed to provide you performance. They are designed to simplify your
: current and future development process.
that can reduce DB hits in many cases. Of course an ORM generated
SQL batch cannot beat carefully hand-written ones, but there's a
reason stored procesure is not popular these days.
your
【在 s******e 的大作中提到】
: of course if you really care about your app performance.
: ORM tools are never good for batch updates/insertions/deletions. They are
: not designed to provide you performance. They are designed to simplify your
: current and future development process.
s*e
26 楼
Well if that is the case you can write your own query object pattern with
cache to do it.
Did I mention SP? I did not get it.
cache to do it.
Did I mention SP? I did not get it.
r*l
30 楼
This always comes down to flexibility vs standard/convention. A real good
developer can take advantage of straight JDBC's flexibility and write good
code that outperforms Hibernate. However, real good developers are rare and
for most of us, using Hibernate will yield better results.
【在 g*****g 的大作中提到】
: That's not exactly true. ORM allows a simple way to do caching,
: that can reduce DB hits in many cases. Of course an ORM generated
: SQL batch cannot beat carefully hand-written ones, but there's a
: reason stored procesure is not popular these days.
:
: your
developer can take advantage of straight JDBC's flexibility and write good
code that outperforms Hibernate. However, real good developers are rare and
for most of us, using Hibernate will yield better results.
【在 g*****g 的大作中提到】
: That's not exactly true. ORM allows a simple way to do caching,
: that can reduce DB hits in many cases. Of course an ORM generated
: SQL batch cannot beat carefully hand-written ones, but there's a
: reason stored procesure is not popular these days.
:
: your
T*g
31 楼
don't think so. Take Hibernate for example, stateless session is
specifically designed for batch processing, which will by pass the session
level cache and second level cache.
your
【在 s******e 的大作中提到】
: of course if you really care about your app performance.
: ORM tools are never good for batch updates/insertions/deletions. They are
: not designed to provide you performance. They are designed to simplify your
: current and future development process.
specifically designed for batch processing, which will by pass the session
level cache and second level cache.
your
【在 s******e 的大作中提到】
: of course if you really care about your app performance.
: ORM tools are never good for batch updates/insertions/deletions. They are
: not designed to provide you performance. They are designed to simplify your
: current and future development process.
T*g
33 楼
If you really got lots of data, why you consider jdbc? Normally, Db provides
some tools to load the data from some specific format file automatically,
which will increase the performance dramatically.
some tools to load the data from some specific format file automatically,
which will increase the performance dramatically.
s*e
34 楼
批处理还是用Procedure方便,performance也好,就是多了之后维护太麻烦,尤其是有
人写的动辄几千行,就像一团乱麻那种,看着就头疼
provides
【在 T*********g 的大作中提到】
: If you really got lots of data, why you consider jdbc? Normally, Db provides
: some tools to load the data from some specific format file automatically,
: which will increase the performance dramatically.
人写的动辄几千行,就像一团乱麻那种,看着就头疼
provides
【在 T*********g 的大作中提到】
: If you really got lots of data, why you consider jdbc? Normally, Db provides
: some tools to load the data from some specific format file automatically,
: which will increase the performance dramatically.
相关阅读
A very Stupid Questionstruts 问题求教what wrong with jboss?想用java编个画图的界面,哪位帮一下忙Java 面试常见问题!static getInstance()问一下,国外C++是不是很被B4?jboss deployment issue, againJAVA XML QuestionThe most popular java forum in china?多个Log4J配置文件问题关于Protected变量get the default printer name from windowsCore J2EE Design Pattern[转载] 怎样让oracle不要fail on errorJasper找不到JDK居然Java比C++快的理论依据(ZT)考SCEA归来LIGHTWEIGHT_RENDERER in all-java JMF.Re: 考JCEA归来