[TIL_200703] NoSQL을 SQL처럼 활용하기

L·2020년 7월 4일
0

TIL

목록 보기
13/115

오늘 배운 것

RDB식 중복 검사: NoSQL을 SQL처럼

article emotion 중복 검사

  • 기존: db.articles collection의 emotion_list 안에 user_uid가 있는지 검증
  • 보완
    • db.emotions collection 생성
    • emotions row 당 article_id, user_uid, emotion_type 추가

comment vote 중복 검사

  • 기존: db.comments collection의 vote_list 안에 user_uid가 있는지 검증
  • 보완
    • db.votes collection 생성
    • votes row 당 comment_id, user_uid, vote_type 추가

내일 배울 것

Social login API 통합

  • 기존 Social Login/Sign-up 버튼이 분리되어 있었던 것을 보완
  • 각 Social login API(Facebook, Google 등) 당 1개의 버튼으로 통합

0개의 댓글