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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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.
相关阅读
Tomcat JSP syntax errorRe: Java版奥运发包子open source java programs/tools database问个可能比较奇怪的弱问题请推荐本最好的Java基础书 (转载)winstone servlet containerOutofMemoryError: Java Heap SpaceExpression Language 里如何调用jdk函数?wicket in action到手了弱人再问一个关于Java的问题探讨一个 ORM + web service 的问题sendRedirect problemjava/J2EE interview questions and answers ebookReplay Solutions Recruitment Event NOW!!讨论一下web framework吧An interview question.Java interface问个JPA的问题问一道关于Vector的题问个eclipse的问题你们写个CRUD的web application会不会用些高级一点的东西?