-
Notifications
You must be signed in to change notification settings - Fork 0
DynamoDB 쿼리 및 스캔 작업 정리
Lucy Oh edited this page Aug 10, 2023
·
6 revisions
Written by Jisoo Oh
KeyConditionExpression 작동 확인하기
- PK가 동일하고 SK가 USER#로 시작하는 데이터를 전부 가져오기
KeyCondition으로 나온 결과에 필터 표현식 작성하기
- status가
PUBLIC
인 데이터만 가져오기
최신 순 정렬하기
- SK(allowedDate)를 기준으로 게시글을 최신 순 정렬한 값을 가져오기 (기본은 오래된 순으로 정렬됨.)