Skip to content

Commit

Permalink
[refactor]: places 테이블에 longitude latitude 인덱스 추가
Browse files Browse the repository at this point in the history
- 조회 효율을 높이기 위하여 longitude, latitude 인덱스를 추가했습니다.

관련 이슈: #147
  • Loading branch information
dong-yxxn committed Nov 13, 2024
1 parent 3206309 commit ad7d412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/resources/sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ create table places
latitude text not null,
longitude text not null,
menu_img_url text null,
category enum ('CAFE', 'JAPANESE', 'KOREAN', 'NONE', 'RESTAURANT', 'WESTERN') not null
category enum ('CAFE', 'JAPANESE', 'KOREAN', 'NONE', 'RESTAURANT', 'WESTERN') not null,
index idx_long_lat (longitude(15), latitude(15))
);

create table places_menuboardphotourl_list
Expand Down

0 comments on commit ad7d412

Please sign in to comment.