문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
java:hibernate:batch [2018/12/11 16:25] kwon37xi [기억할 점] |
java:hibernate:batch [2022/11/13 23:13] (현재) kwon37xi |
||
|---|---|---|---|
| 줄 5: | 줄 5: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| ===== 작동 원리 ===== | ===== 작동 원리 ===== | ||
| 줄 11: | 줄 12: | ||
| * 기본적으로 '' | * 기본적으로 '' | ||
| - | ===== 기억할 | + | ===== @Id 에 대한 주의점 ===== |
| * '' | * '' | ||
| * [[https:// | * [[https:// | ||
| - | > For IDENTITY columns, | + | * [[https:// |
| - | For this reason, Hibernate disables JDBC batch inserts for entities using the IDENTITY generator | + | * 따라서 Batch Insert 를 올바로 작동시키려면 '' |
| + | |||
| + | > For IDENTITY columns, Hibernate cannot delay the INSERT statement until flush time because the identifier value can only be generated by executing the statement. | ||
| + | > For this reason, Hibernate disables JDBC batch inserts for entities using the IDENTITY generator strategy. | ||
| + | |||
| + | ===== 기억할 점 ===== | ||
| * batch 옵션은 Hibernate가 직접 Insert 문을 '' | * batch 옵션은 Hibernate가 직접 Insert 문을 '' | ||
| * MySQL | * MySQL | ||
| 줄 59: | 줄 65: | ||
| </ | </ | ||
| + | ===== Versioned Data ===== | ||
| + | * '' | ||
| + | * 즉, '' | ||
| + | * 기본으로는 자동으로 될 수도 있는데, 일반적으로 '' | ||
| + | * 단, '' | ||
| + | ===== 참조 ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||