감자의 첫 PR Merge😎 Fix(core): Prevent redundant schema resolution by fixing AnnotatedType equality
·
OpenSource Contribute
드디어 처음으로 PR이 Merge 됐다!https://github.com/swagger-api/swagger-core/pull/4975 Fix(core): Prevent redundant schema resolution by fixing AnnotatedType equality by juntae6942 · Pull Request #4975 · swagger-aPull Request Description This pull request resolves a performance issue where the ModelConverterContext fails to cache AnnotatedType instances, leading to redundant schema resolutions. The root ca..
영속성 관리
·
Spring
다썼는데 글이 날라갔다..... 엔티티 매니저와 엔티티 매니저 팩토리엔티티 매니저는 엔티티를 저장하는 가상의 데이터베이스로 생각하면 된다. 엔티티 매니저 팩토리는 여러 스레드가 동시에 접근해도 안전하므로 서로 다른 쓰레드 간에 공유해도 되지만, 엔티티 매니저는 여러 쓰레드가 동시에 접근하면 동시성 문제가 발생하므로 쓰레드 간에 절대 공유하면 안된다. 엔티티 매니저는 데이터베이스 연결이 꼭 필요한 시점까지 커넥션을 얻지 않는다. 영속성 컨텍스트란? "엔티티를 영구 저장하는 환경"persist() 메소드는 엔티티 매니저를 사용해서 회원 엔티티를 영속성 컨텍스트에 저장한다.엔티티 생명주기비영속 : 영속성 컨텍스트와 전혀 관계가 없는 상태, 순수한 객체 상태영속 : 영속성 컨텍스트에 저장된 상태, 영속성 컨텍스..