avatar
g*l
2
有了spring/hibernate,还有人直接用JDBC写database application code吗?
avatar
f*u
3
还不是爵猫的年夜饭给勾来的

【在 r****r 的大作中提到】
: 我没看错吧,出了十莫大事了?
avatar
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.
avatar
r*r
5
那你呢,是不是也是闻到爵猫年夜饭的味道来的

【在 f***u 的大作中提到】
: 还不是爵猫的年夜饭给勾来的
avatar
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.

avatar
f*u
7
我是昨天补了课,欣赏了大家的有声表演,大受感动而来的,其中还包括发现你是男的。

【在 r****r 的大作中提到】
: 那你呢,是不是也是闻到爵猫年夜饭的味道来的
avatar
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.
avatar
r*r
9
没吓你一跟头吧,赫赫
那什么,我代表大伙呼吁你也给大伙补补课奔一个吧

的。

【在 f***u 的大作中提到】
: 我是昨天补了课,欣赏了大家的有声表演,大受感动而来的,其中还包括发现你是男的。
avatar
g*g
10
Then you end up with your own ORM. I've seen that in two companies
I've worked with. Neither of them is very well written.

【在 s******e 的大作中提到】
: 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.

avatar
S*9
11
飞鱼奔一个吧,或者你发给我,我把你跟其他几位童鞋的拜年奔汇总了一起奔

【在 r****r 的大作中提到】
: 没吓你一跟头吧,赫赫
: 那什么,我代表大伙呼吁你也给大伙补补课奔一个吧
:
: 的。

avatar
g*l
12
How about Java Persistence API?

【在 g*****g 的大作中提到】
: Then you end up with your own ORM. I've seen that in two companies
: I've worked with. Neither of them is very well written.

avatar
f*u
13
我没有马甲阿。奔,岂不是裸奔

【在 S****9 的大作中提到】
: 飞鱼奔一个吧,或者你发给我,我把你跟其他几位童鞋的拜年奔汇总了一起奔
avatar
r*l
14
JPA is a standard and Hibernate supports it. In other words, Hibernate is
one of JPA implementations.

【在 g***l 的大作中提到】
: How about Java Persistence API?
avatar
r*r
15
飞鱼我很喜欢你娇羞的样子
赫赫赫赫

【在 f***u 的大作中提到】
: 我没有马甲阿。奔,岂不是裸奔
avatar
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

avatar
f*u
17
姐姐你就别逗我了

【在 r****r 的大作中提到】
: 飞鱼我很喜欢你娇羞的样子
: 赫赫赫赫

avatar
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.

avatar
r*r
19
好吧,你什么时候奔

【在 f***u 的大作中提到】
: 姐姐你就别逗我了
avatar
m*e
20
Jdbc's batch update /insert /delete is way faster than hibernate

【在 T*********g 的大作中提到】
: 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

avatar
f*u
21
等我感冒好了的时候?

【在 r****r 的大作中提到】
: 好吧,你什么时候奔
avatar
g*l
22
有了spring/hibernate,还有人直接用JDBC写database application code吗?
avatar
r*r
23
立此存照,静候佳音

【在 f***u 的大作中提到】
: 等我感冒好了的时候?
avatar
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.
avatar
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.

avatar
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.
avatar
g*g
27
Then you end up with your own ORM. I've seen that in two companies
I've worked with. Neither of them is very well written.

【在 s******e 的大作中提到】
: 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.

avatar
g*l
28
How about Java Persistence API?

【在 g*****g 的大作中提到】
: Then you end up with your own ORM. I've seen that in two companies
: I've worked with. Neither of them is very well written.

avatar
r*l
29
JPA is a standard and Hibernate supports it. In other words, Hibernate is
one of JPA implementations.

【在 g***l 的大作中提到】
: How about Java Persistence API?
avatar
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

avatar
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.

avatar
m*e
32
Jdbc's batch update /insert /delete is way faster than hibernate

【在 T*********g 的大作中提到】
: 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

avatar
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.
avatar
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。