정리하기/DR

[Daily Report] 22.01.13 - TistoryCategory 비교 메서드 구현

pythaac 2022. 1. 13. 20:11

Memo

DB Sync 처리 순서

l  정렬된 DB/Blog list 순차 비교

l  CategoryDB에 추가 (tistoryCatId)

-        DB Listend of list

-        DBid가 더 큰 경우

l  PostDB에 추가 (tistoryPostId)

-        DB Listend of list

-        DBid가 더 큰 경우

l  PostDB에 변경

-        tistoryPostDate가 다른 post 변경
(postTItle + postContent + postTags)

-        tistoryPostVisible이 다른 post 변경

l  PostDB에 삭제

-        Blog Listend of list

-        Blogid가 더 큰 경우

l  CategoryDB에 변경

-        catName이 다른 category 변경

-        catParent가 다른 category 변경

-        catVisible이 다른 category 변경

l  CategoryDB에 삭제

-        Blog Listend of list

-        Blogid가 더 큰 경우

 

Done

l  TistorySync 수신한 데이터 정렬

-        Category 비교 메서드 작성

 

New

l  [mamacoco] Postdeleted

-        기존 : Blog에서 post가 삭제되어도 deleted flag만 바꾸고 데이터 보존

-        변경 : Blog에서 post 삭제시 삭제

-        이유 : 삭제된 postcategory가 삭제될 경우, post에 존재하는 categoryId로 인해 삭제가 불가능할 수 있음

 

Things to know