정리하기/DR

[Daily Report] 22.01.19 - createPost, deletePost 작성

pythaac 2022. 1. 19. 21:28

Memo

Done

l  create/delete Post 추가

l  updatePost

-          PostId-TistoryPostId table 필요

 

Todo

l  postId-TistoryPostId table

-          Category와 같이 mapper에 작성

l  mapping tableVector로 변경

-          동기화 문제로 vector로 변경 필요

 

New

List vs ArrayList

l  List는 인터페이스, ArrayListList를 구현

l  List<Obj> list = new ArrayList<>(); 로 사용을 권장

-          List의 하위클래스(LinkedList )으로 사용 가능

 

Vector vs ArrayList

l  Vector는 동기화되어 쓰레드 하나씩만 접근 가능

-          ArrayList는 동기화되지 않아 여러 쓰레드가 동시에 접근가능

 

Things to know

Optimistic locking?