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

동시성 문제로 wr_seo_title 값이 중복되는 문제 #293

Open
kkigomi opened this issue Dec 2, 2023 · 1 comment
Open

동시성 문제로 wr_seo_title 값이 중복되는 문제 #293

kkigomi opened this issue Dec 2, 2023 · 1 comment

Comments

@kkigomi
Copy link
Contributor

kkigomi commented Dec 2, 2023

참고 : https://sir.kr/qa/518595

위 참고 페이지의 문제 증상과 같이 같은 제목을 가진 글의 주소를 처리하는 과정이 불완전하여 주소가 중복되는 문제가 발생합니다.

또한, "최근 글은 아예 초반의 로션-후기-1 이런걸로 생성이 되버리고 있습니다"라는 내용으로 보아 동시성 문제와 별개로 중복방지 자체가 제대로 기능을 하지 못하는 것으로 보입니다.

같은 제목을 가지면 뒤에 순차 증가하는 숫자를 붙여 중복을 방지하려하지만 짧은 시간에 작성된 글에서 이런 중복방지 기능이 제대로 동작하지 않습니다.

순차 증가하는 값 대신 다음과 같은 방법으로 중복 문제를 해결 또는 개선할 수 있을 것 같습니다.

  • 글 번호(wr_id)를 붙여서 해결
  • 랜덤 또는 시간 기반의 랜덤 문자열의 일부 문자열로 붙여서 개선
    • 예) 중복-제목-de3f
@thisgun
Copy link
Contributor

thisgun commented Dec 18, 2023

안녕하세요. SIR 입니다.

알려주셔서 감사합니다.

해당 문제는 알려주신대로 글번호나 랜덤 문자열로 붙여서 개선하겠습니다.

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

2 participants