Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Academy schedules] 기존에 rtree index가 있음에도 사용하지 못했던 쿼리 오류 수정 #117

Merged
merged 3 commits into from
Dec 4, 2023

Conversation

byeolhaha
Copy link
Member

구현

기존에 rtree index가 있음에도 사용하지 못했던 쿼리 오류 수정하였습니다.

before

select
    a.id AS academyId,
    a.academy_name AS academyName,
    a.full_address AS fullAddress,
    a.phone_number AS phoneNumber,
    a.latitude,
    a.longitude,
    a.shuttle AS shuttleAvailable
FROM
    academies as a 
WHERE
    MBRContains(ST_LINESTRINGFROMTEXT('LINESTRING(37.457634 127.154890, 37.432197 127.122852)',4326), a.point)=1 ;

after

select
    a.id AS academyId,
    a.academy_name AS academyName,
    a.full_address AS fullAddress,
    a.phone_number AS phoneNumber,
    a.latitude,
    a.longitude,
    a.shuttle AS shuttleAvailable
FROM
    academies as a 
WHERE
    MBRContains(ST_LINESTRINGFROMTEXT('LINESTRING(37.457634 127.154890, 37.432197 127.122852)',4326), a.point) ;

@byeolhaha byeolhaha self-assigned this Dec 4, 2023
@byeolhaha byeolhaha added the enhancement New feature or request label Dec 4, 2023
@byeolhaha byeolhaha merged commit 7d673ea into develop Dec 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant