Search
Duplicate
๐ŸŒฑ

์Šคํ”„๋ง๋ถ€ํŠธ ์„ค์ •

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
๋ณต์‚ฌ