From b07f5df3fc09b11e1e718b2b99f1ddc26158ee44 Mon Sep 17 00:00:00 2001 From: hjinshin Date: Fri, 15 Nov 2024 00:23:02 +0900 Subject: [PATCH] =?UTF-8?q?Test:=20N+1=20=EB=B0=9C=EC=83=9D=20=EC=84=B1?= =?UTF-8?q?=EB=8A=A5=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../answer/infrastructure/repository/AnswerRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/supernova/whokie/answer/infrastructure/repository/AnswerRepository.java b/src/main/java/supernova/whokie/answer/infrastructure/repository/AnswerRepository.java index 22da7ae1..02a5ca76 100644 --- a/src/main/java/supernova/whokie/answer/infrastructure/repository/AnswerRepository.java +++ b/src/main/java/supernova/whokie/answer/infrastructure/repository/AnswerRepository.java @@ -13,7 +13,7 @@ import java.util.List; public interface AnswerRepository extends JpaRepository { - @EntityGraph(attributePaths = {"picked"}) + //@EntityGraph(attributePaths = {"picked"}) @Query("SELECT p FROM Answer p WHERE p.picked = :user AND p.createdAt BETWEEN :startDate AND :endDate ORDER BY p.createdAt DESC") Page findAllByPickedAndCreatedAtBetween(Pageable pageable, @Param("user") Users user, @Param("startDate") LocalDateTime startDate, @Param("endDate") LocalDateTime endDate);