Skip to content

Commit

Permalink
Refactor : r-tree index 사용하는 쿼리로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
byeolhaha committed Dec 10, 2023
1 parent 2e8fa47 commit bd9df90
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 bd9df90

Please sign in to comment.