-
Redisevent_review{
"user_id":"",
"book_id":"",
"emotion":"SADNESS",
"time":"",
}event_view{
"user_id":"",
"book_id":"",
"time":"",
}event_recommanded{
"user_id":"",
"book_id":"",
"emotion":"SADNESS",
"time":"",
}MongoDB 컬렉션user_score{
"_id": "book1",
"user_id":""
"sadness": 0.5,
"anger": 1.0,
"anxiety": 0.8,
"loneliness": 0.7,
"jealousy": 0.4,
"happiness": 3.0,
"lethargy": 0.2,
"love": 4.5,
"sense_of_achievement": 2.3
}book_score{
"_id": "book1",
"book_id":"",
"sadness": 0.5,
"anger": 1.0,
"anxiety": 0.8,
"loneliness": 0.7,
"jealousy": 0.4,
"happiness": 3.0,
"lethargy": 0.2,
"love": 4.5,
"sense_of_achievement": 2.3
}emotion_rank{
"_id": "emotion_id", // 예: "ANGRY"
"emotion": "ANGRY",
"books": [
{
"book_id": "book1",
"title": "Book Title 1",
"image_url": "http://example.com/image1.jpg",
"price": 20.99,
"author": "Author Name",
"rank": 1,
"score": 95.5
},
{
"book_id": "book2",
"title": "Book Title 2",
"image_url": "http://example.com/image2.jpg",
"price": 15.99,
"author": "Author Name",
"rank": 2,
"score": 90.0
},
...
]
}
6Batch 작업
|
Beta Was this translation helpful? Give feedback.
Answered by
siwan9
Jul 27, 2024
Replies: 1 comment
-
|
user_score의 이유가 책 조회에 따른 book_score 갱신을 위해 존재하는 것으로 보이는데, user_score로 집계된 사용자의 주 감정이 책 조회에 반영되는 감정과 일치될 가능성은 높지만 애매하므로 user_score를 삭제하고 단순하게 책 조회 시 책의 특정 감정의 점수를 올려주는 방법은 어떠한가요? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kang20
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

user_score의 이유가 책 조회에 따른 book_score 갱신을 위해 존재하는 것으로 보이는데, user_score로 집계된 사용자의 주 감정이 책 조회에 반영되는 감정과 일치될 가능성은 높지만 애매하므로 user_score를 삭제하고 단순하게 책 조회 시 책의 특정 감정의 점수를 올려주는 방법은 어떠한가요?