File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed
Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,16 @@ CREATE TABLE if not exists currency(
33 conv_currency TEXT NOT NULL ,
44 rate FLOAT NOT NULL ,
55 date DATE NOT NULL
6- );
6+ );
7+
8+ CREATE INDEX IF NOT EXISTS currency_from_currency_conv_currency_idx
9+ ON public .currency USING btree
10+ (from_currency COLLATE pg_catalog." default" ASC NULLS LAST, conv_currency COLLATE pg_catalog." default" ASC NULLS LAST)
11+ WITH (deduplicate_items= True)
12+ TABLESPACE pg_default;
13+
14+ CREATE INDEX IF NOT EXISTS currency_date_idx
15+ ON public .currency USING btree
16+ (date ASC NULLS LAST)
17+ WITH (deduplicate_items= True)
18+ TABLESPACE pg_default;
Original file line number Diff line number Diff line change @@ -3,4 +3,16 @@ CREATE TABLE IF NOT EXISTS currency(
33 conv_currency TEXT NOT NULL ,
44 rate FLOAT NOT NULL ,
55 date DATE NOT NULL
6- );
6+ );
7+
8+ CREATE INDEX IF NOT EXISTS currency_from_currency_conv_currency_idx
9+ ON public .currency USING btree
10+ (from_currency COLLATE pg_catalog." default" ASC NULLS LAST, conv_currency COLLATE pg_catalog." default" ASC NULLS LAST)
11+ WITH (deduplicate_items= True)
12+ TABLESPACE pg_default;
13+
14+ CREATE INDEX IF NOT EXISTS currency_date_idx
15+ ON public .currency USING btree
16+ (date ASC NULLS LAST)
17+ WITH (deduplicate_items= True)
18+ TABLESPACE pg_default;
You can’t perform that action at this time.
0 commit comments