spring:
jpa:
properties:
hibernate:
show_sql: true
format_sql: true
YAML
๋ณต์ฌ
show_sql ์ sout ์ผ๋ก ์ถ๋ ฅ
format_sql ์ ์์๊ฒ ํฌ๋งคํ
ํด์ค
logging.level:
org.hibernate.SQL: debug
YAML
๋ณต์ฌ
logging.level ์ ๋ก๊ฑฐ๋ก ์ถ๋ ฅ
logging.level:
org.hibernate.type: trace
YAML
๋ณต์ฌ
sql ๋ฌธ์ ๋ฐ์ธ๋ฉ ํ๋ผ๋ฏธํฐ ? ์ ๋ํ ์ ๋ณด ์ถ๋ ฅ
spring:
jpa:
properties:
hibernate:
batch_fetch_style: padded
default_batch_fetch_size: 100
YAML
๋ณต์ฌ
๋ฐฐ์น์ฑ ์กฐํํ ๋ ํ์ ์์ธํ ๋ด์ฉ์ batch_fetch_style
โข
JPQL ์ถ๋ ฅ
spring:
jpa:
properties:
hibernate:
use_sql_comments: true
YAML
๋ณต์ฌ