perf: Updateが多発する問題の一時的な修正

This commit is contained in:
usbharu 2024-01-25 22:22:16 +09:00
parent 85d07e31f3
commit ce837a0494
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class PostServiceImpl(
return try { return try {
val save = postRepository.save(post) val save = postRepository.save(post)
timelineService.publishTimeline(post, isLocal) timelineService.publishTimeline(post, isLocal)
actorRepository.save(actor.incrementPostsCount()) // actorRepository.save(actor.incrementPostsCount())
save save
} catch (_: DuplicateException) { } catch (_: DuplicateException) {
postRepository.findByApId(post.apId) ?: throw PostNotFoundException.withApId(post.apId) postRepository.findByApId(post.apId) ?: throw PostNotFoundException.withApId(post.apId)