Skip to content

Commit

Permalink
index つけてみた(ガチで頼む)
Browse files Browse the repository at this point in the history
  • Loading branch information
yukukotani committed Sep 12, 2020
1 parent 732f029 commit e41d388
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions isuumo/webapp/mysql/db/0_Schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ CREATE TABLE isuumo.estate
door_width INTEGER NOT NULL,
features VARCHAR(64) NOT NULL,
popularity INTEGER NOT NULL,
INDEX idx_state_search (door_height, door_width, features)
INDEX idx_rent (rent),
INDEX idx_door_height (door_height),
INDEX idx_door_width (door_width)
);

CREATE TABLE isuumo.chair
Expand All @@ -35,7 +37,13 @@ CREATE TABLE isuumo.chair
features VARCHAR(64) NOT NULL,
kind VARCHAR(64) NOT NULL,
popularity INTEGER NOT NULL,
stock INTEGER NOT NULL
stock INTEGER NOT NULL,
INDEX idx_price (price),
INDEX idx_height (height),
INDEX idx_width (width),
INDEX idx_depth (depth),
INDEX idx_color (color),
INDEX idx_kind (kind)
);

CREATE TABLE isuumo.estate_search_log
Expand Down

0 comments on commit e41d388

Please sign in to comment.