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

Switch to non-reactive mongodb to fix batch #112

Merged
merged 3 commits into from
Sep 3, 2024
Merged

Conversation

asp345
Copy link
Member

@asp345 asp345 commented Aug 31, 2024

이렇게 하면 배치가 고쳐지긴 하는데 정확한 이유를 모르겠네요

@asp345 asp345 merged commit 2f00138 into develop Sep 3, 2024
2 checks passed
Comment on lines +18 to +28
CoroutineScope(Dispatchers.IO).launch {
runCatching {
mongoTemplate.updateMulti(
Query(Criteria.where("_id").`in`(snuttIds)),
Update().set("evInfo.evId", evInfo?.id)
.set("evInfo.avgRating", evInfo?.avgRating)
.set("evInfo.count", evInfo?.count),
"lectures",
)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coroutineScope는 빼도 괜찮을 것 같네요.
어차피 이거 webflux 스택이 아니라서요

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코루틴 의존성 떼고 아예 나중에 virtualThread 붙이는게 훨씬 나을듯해요

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

Successfully merging this pull request may close these issues.

2 participants