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

🐛 fix: when create table srid set to 4326 #157

Merged
merged 1 commit into from
Jul 2, 2023

Conversation

seonghun-dev
Copy link
Collaborator

@seonghun-dev seonghun-dev commented Jun 29, 2023

Resolve : #156
디비도 마이그레이션 완료했습니다.

MySQL에서는 테이블을 생성할 때 SRID를 명시적으로 정의하지 않으면 해당 칼럼은 모든 SRID를 저장할 수 있습니다.
하지만 하나의 칼럼에 저장된 데이터의 SRID가 제각각이라면 MySQL 서버는 인덱스를 사용할 수 없습니다.

Before
238197999-8ed4ca4b-2519-471a-9c24-46f180f11917

After
screenshot 2023-06-29 오후 5 01 32

Refrence

@seonghun-dev seonghun-dev added the 🐛bug Something isn't working label Jun 29, 2023
Copy link
Collaborator

@yunyoung1819 yunyoung1819 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 회의때 마이그레션 작업하신 부분도 공유해주시면 좋을 것 같아요.
고생 많으셨습니다 👍

Copy link
Member

@siyeonSon siyeonSon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.34초에서 0.02초로 개선이라니!! 👍👍👍

@seonghun-dev seonghun-dev merged commit 249a267 into main Jul 2, 2023
@seonghun-dev seonghun-dev deleted the fix/multipolygon-index branch July 2, 2023 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Troubleshooting a MultiPolygon Index not working
3 participants