Optimization for String Concatenation
·
Shorts
Java Compiler Optimization for String Concatenation String concatenation was a costly affair in the early Sun Java versions(till JDK1.4 to be precise). Even though later JDK’s brought the… medium.com
InnoDB Isolation Level, Lock, JPA Lock Strategy
·
Shorts
https://taes-k.github.io/2020/05/17/mysql-transaction-lock/ Mysql innoDB Lock, isolation level과 Lock 경쟁 InnoDB Lock MySql InnoDB 엔진의 경우 다양한 Lock을 이용하여 ACID(원자성, 일관성, 고립성, 지속성) 및 동시성을 보장합니다. Lock을 쿼리마다 사용자가 명시적으로 걸어 줄 수도 있지만, 일반적으로 Trans taes-k.github.io https://www.letmecompile.com/mysql-innodb-lock-deadlock/ MySQL InnoDB lock & deadlock 이해하기 대규모의 많은 요청이 동시에 들어오는 데이터베이스(Database, DB) 어플리케이션의 경우 ..
JPA FlushModeType, Nested @Transactional
·
Shorts
https://perfectacle.github.io/2021/06/13/entity-manager-persist-vs-merge/ (JPA) persist vs merge 들어가기에 앞서글을 정리하다 보니 너무 깊게 파고 정리한 거 같아 글이 너무 길어져서 아무도 읽지 않을 것 같아 정리부터 해보겠습니다. 엔티티 매니저의 persist 메서드는 리턴값이 없기 때문 perfectacle.github.io https://junhyunny.github.io/spring-boot/jpa/junit/jpa-flush/ JPA Flush junhyunny.github.io https://stackoverflow.com/questions/37217075/spring-nested-transactions Spring ..
IntegerCache
·
Shorts
Java Integer Cache - Javapapers This Java article is to introduce and discuss about Integer Cache. This is a feature introduced in Java 5 to save memory and improve the performance. Let us first have a look at a sample code which uses Integers and showcases the Integer Cache behavior. Fr javapapers.com Java Wrapper Class 의 캐싱 Wrapper Class Java에는 Primitive Type을 Reference Type으로 사용하기 위해서 만든 Wrap..