get home with random seed#129
Merged
Merged
Conversation
Contributor
|
확인했습니다. 지금 방법으로 merge하시죠! 게시물 수가 많을 때 성능 이슈가 생길 수 있다는것 같은데 맞을까요? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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를 이용해서 순서 보장
이렇게 하는 방식이 간단하긴 한데, 성능이 안좋은 것 같아서 홈 게시글 조회 관련해서는 좀 더 봐야할것같습니다.