From ad7d41289847270f8e7c284f928189d5fb4a19f5 Mon Sep 17 00:00:00 2001 From: dong_yxxn Date: Wed, 13 Nov 2024 21:34:45 +0900 Subject: [PATCH] =?UTF-8?q?[refactor]:=20places=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=EC=97=90=20longitude=20latitude=20=EC=9D=B8=EB=8D=B1?= =?UTF-8?q?=EC=8A=A4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 조회 효율을 높이기 위하여 longitude, latitude 인덱스를 추가했습니다. 관련 이슈: #147 --- src/main/resources/sql/schema.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/sql/schema.sql b/src/main/resources/sql/schema.sql index 95c33646..0ce15c4c 100644 --- a/src/main/resources/sql/schema.sql +++ b/src/main/resources/sql/schema.sql @@ -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