Skip to content

Commit

Permalink
Merge pull request #128 from Guzzing/academy-schedules
Browse files Browse the repository at this point in the history
 r-tree index가 있으나 사용하지 못했던 쿼리 개선, N+1 문제 해결 등으로 1s에서 500ms로 응답시간 개선
  • Loading branch information
byeolhaha authored Dec 11, 2023
2 parents 487c62c + bd9df90 commit 0e330a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Optional<Region> findBySidoAndSigunguAndUpmyeondong(final String sido, final Str
final String upmyeondong);

@Override
@Query("select r from Region r where ST_Contains(r.area, :point) = true")
@Query("select r from Region r where ST_Contains(r.area, :point)")
Optional<Region> findByAreaContainingPoint(@Param("point") final Point point);

}

0 comments on commit 0e330a6

Please sign in to comment.