问题描述
我正在阅读一些休眠教程,并且陷入了default_batch_fetch_size的困境.阅读有关"可以在性能敏感的应用程序中使用Hibernate的专家的评论吗?"清楚地说明了重要性,但我试图理解为什么在链接中使用推荐值4、8、16或32.
I was going through some hibernate tutorials and got stuck on default_batch_fetch_size. Reading expert comments on "Can Hibernate be used in performance sensitive applications?" clearly explained the significance but I am trying to understand why are the recommended values 4, 8, 16 or 32 as used in the link.
关于塔伦(Tarun)
Regards Tarun
推荐答案
我们在生产中使用hibernate.default_batch_fetch_size = 100
.因此,在某些情况下,我们有3个查询而不是300个查询,因此对于我们的数据库来说是一个很好的性能提升.
We are using hibernate.default_batch_fetch_size = 100
in production. So we have an 3 queries instead of 300 in some cases, so it's a good perf boost for our database.
这篇关于default_batch_fetch_size建议值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!