hibernate.jdbc.fetch_size
> In the first case, hibernate.jdbc.fetch_size sets the statement's fetch size within the JDBC driver, that is the number of rows fetched when there is more than a one row result on select statements. In the second case, hibernate.jdbc.batch_size determines the number of updates (inserts, updates and deletes) that are sent to the database at one time for execution.
โข
fetch_sizeย ๋ result ๊ฐ ์ฌ๋ฌ๊ฐ์ผ ๋, ํ ๋ฒ์ ์ฝ์ด์ฌ row ์์ด๋ค(๋จ,MySQL์ ํญ์ ์ ์ฒด ๋ฐ์ดํฐ๋ฅผ ํ๋ฐฉ์ ์ฝ๋๋ค๊ณ ํจ. TBD)
hibernate.jdbc.batch_size
โข
batch_sizeย ๋ update(insert,update,delete) ์์ ๋ฌถ์ด์ ์์ฒญํ ๊ฐฏ์์ด๋ค.
โข
์ด ๋ sequence ๊ธฐ๋ฐ์ผ๋ก ID๋ฅผ ์์ฑํ๋ค๋ฉด, sequence ์ increment_size ๋ ๋์ผํ๊ฒ ๋ง์ถฐ์ฃผ๋๊ฒ ์ข๋ค.
์ถ์ฒ: