Skip to content

Commit 317a86f

Browse files
committed
<refactor>[core]: add hibernate.default_batch_fetch_size=50 to reduce N+1 SQL queries
Reduces SQL count from ~52 to ~6 for VM queries and ~32 to ~5 for Host queries by enabling Hibernate batch fetching for EAGER collections. Resolves: ZSTAC-79217 Change-Id: I6bb2a852c1f3f3780f2bc6cf90ce330ae1b6d9fb
1 parent 9826a0e commit 317a86f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

conf/springConfigXml/DatabaseFacade.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
<!--.8.2.x infinispan not support async https://issues.redhat.com/browse/ISPN-4065 -->
8888
<prop key="hibernate.search.default.worker.execution">sync</prop>
8989
<!--<prop key="hibernate.search.default.index_flush_interval">${IndexWorker.flushInterval:1000}</prop>-->
90-
<prop key="hibernate.globally_quoted_identifiers">true</prop>
90+
<prop key="hibernate.globally_quoted_identifiers">true</prop>
91+
<prop key="hibernate.default_batch_fetch_size">50</prop>
9192
</props>
9293
</property>
9394
</bean>

0 commit comments

Comments
 (0)