Skip to content

Commit e41d388

Browse files
committed
index つけてみた(ガチで頼む)
1 parent 732f029 commit e41d388

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

isuumo/webapp/mysql/db/0_Schema.sql

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ CREATE TABLE isuumo.estate
1818
door_width INTEGER NOT NULL,
1919
features VARCHAR(64) NOT NULL,
2020
popularity INTEGER NOT NULL,
21-
INDEX idx_state_search (door_height, door_width, features)
21+
INDEX idx_rent (rent),
22+
INDEX idx_door_height (door_height),
23+
INDEX idx_door_width (door_width)
2224
);
2325

2426
CREATE TABLE isuumo.chair
@@ -35,7 +37,13 @@ CREATE TABLE isuumo.chair
3537
features VARCHAR(64) NOT NULL,
3638
kind VARCHAR(64) NOT NULL,
3739
popularity INTEGER NOT NULL,
38-
stock INTEGER NOT NULL
40+
stock INTEGER NOT NULL,
41+
INDEX idx_price (price),
42+
INDEX idx_height (height),
43+
INDEX idx_width (width),
44+
INDEX idx_depth (depth),
45+
INDEX idx_color (color),
46+
INDEX idx_kind (kind)
3947
);
4048

4149
CREATE TABLE isuumo.estate_search_log

0 commit comments

Comments
 (0)