nestjs3 mikro-orm auto increment issue 등록 후기 이슈등록: https://github.com/mikro-orm/mikro-orm/issues/5460 Mysql auto_increment_increment setting is not work. · Issue #5460 · mikro-orm/mikro-orm Describe the bug If you set mysql variable auto_increment_increment to 2, When saving multiple entities, pk should be incremented by 2. However, if you use the following code in the MySqlDriver fil... github.com [ 문제 상황 ] 사내에서 mikro-orm 을 Mysql 과 사용하고 있.. 2024. 4. 17. mikro orm의 request context 주저리 회사에서 최근에 typeorm에서 mikro orm 으로 이동하기 시작했다. 일단 typeorm 에 비해 mikro orm 이 가지는 장점들이 분명히 있음에도 주의해야할 사항이 있어보였다. 사용하다가 조금 개념이 헷갈리는 부분이 있었는데, request context, identity map 이 그 부분이다. identity map 은 JPA 의 persistence context 와 비슷 혹은 같은 개념이다. 그런데, nest에서 mikro orm 을 사용하면, 이 context 가 request 단위로 할당된다는 점이다. 이는 OSIV 와 비슷한 개념인데, 아래 포스트에 설명이 되어있다. https://pius712.tistory.com/14 영속성 컨텍스트와 트랜잭션의 관계 1. 영속성 컨텍스트와 .. 2024. 2. 18. Yagni (You aren’t gonna need it) (feat. 클린 아키텍처) https://martinfowler.com/bliki/Yagni.html 2023. 7. 2. 이전 1 다음