Skip to content

Commit

Permalink
SpaceWallTemporary 삭제 쿼리 성능 최적화로 배포 환경 이슈 해결 (Fastcampus-Final-Team3#227
Browse files Browse the repository at this point in the history
)
  • Loading branch information
YangSooHyun0 authored Nov 1, 2023
1 parent 452bb05 commit cd0e9ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
public interface SpaceWallRepository extends Repository<SpaceWall, Long> {

@Modifying
@Query("DELETE FROM SpaceWall sw WHERE sw.id IN (SELECT s.id FROM SpaceWall s WHERE s.member.id = :memberId AND s.addSpace.id = :addSpaceId AND s.flag = :flag)")
@Query("DELETE FROM SpaceWall sw WHERE sw.member.id = :memberId AND sw.addSpace.id = :addSpaceId AND sw.flag = :flag")
void deleteByMemberIdAndAddSpaceIdAndFlag(@Param("memberId") Long memberId, @Param("addSpaceId") Long addSpaceId, @Param("flag") FlagType flag);

SpaceWall save(final SpaceWall spaceWall);
Expand Down

0 comments on commit cd0e9ab

Please sign in to comment.