기타

JBoss 사용 시 statement pooling 설정

by 손승일 posted Dec 16, 2016

Database Connection Pool 설정 시 빈번한 쿼리 파싱으로 인한 부하를 줄이기 위해 statement pooling 설정을 추가하는데, JBoss 사용 시 설정 방법은 아래와 같다.

<datasource ...

      ...

      <statement>

      <track-statements>true</track-statements>

      <prepared-statement-cache-size>100</prepared-statement-cache-size>

      <share-prepared-statements>true</share-prepared-statements>

      </statement>

</datasource>


Articles

1 2 3 4 5 6 7 8 9 10