Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

order by rand() 성능 #41

Open
0chil opened this issue Aug 23, 2022 · 0 comments
Open

order by rand() 성능 #41

0chil opened this issue Aug 23, 2022 · 0 comments

Comments

@0chil
Copy link
Contributor

0chil commented Aug 23, 2022

브라우저 탭을 정리하다가 이런 글을 봤어요
회원 데이터가 커지면 성능에 문제가 있다(...)
rand()를 단순히 사용하는데 뭔가 찜찜했는데 이런 거였네요.
추후 개선 여지가 있네요.
그리고 가능하다면 게시물 조회에 관한 순서(랜덤, 최신, 좋아요)와 필터링(태그)에 관한 endpoint를 통합하면 좋겠다는 생각을 해봤네요.
현재는 모두 분리되어 있죠. 당장 하자는 뜻은 아닙니다!

참고한 글

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant