Skip to content

Commit

Permalink
fix: 불필요한 연산 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
ay-eonii committed Nov 22, 2024
1 parent ac178f5 commit 0c6e3ec
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ public interface ChamyoRepository extends JpaRepository<Chamyo, Long> {
@Query("""
SELECT new mouda.backend.moim.infrastructure.dto.ChamyoMoim(
c.moim.id,
(SELECT COUNT(c2)
FROM Chamyo c2
WHERE c2.moim = c.moim)
COUNT(c)
)
FROM Chamyo c
WHERE c.moim IN :moims
Expand Down

0 comments on commit 0c6e3ec

Please sign in to comment.