get home with random seed #129
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
홈 게시글 정렬 조건 추가
: order_by(flag_col, random_order, Post.id.desc())
새로고침해서 cursor가 없다면 -> 새 seed 생성
cursor가 존재하면 FeedCursor에 있는 seed 사용 -> 같은 seed를 이용해서 순서 보장
이렇게 하는 방식이 간단하긴 한데, 성능이 안좋은 것 같아서 홈 게시글 조회 관련해서는 좀 더 봐야할것같습니다.