fc-common: use btree index for build_outputs.path in db schema
Btree supports NULL values and provides better flexibility than hash index for nullable columns. Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ida28ef6f88683c360e6f405efca435af6a6a6964
This commit is contained in:
parent
01cd4439aa
commit
959aba0933
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ CREATE TABLE build_outputs (
|
||||||
PRIMARY KEY (build, name)
|
PRIMARY KEY (build, name)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX idx_build_outputs_path ON build_outputs USING hash (path);
|
CREATE INDEX idx_build_outputs_path ON build_outputs USING btree (path);
|
||||||
|
|
||||||
-- build_products: output artifacts and metadata
|
-- build_products: output artifacts and metadata
|
||||||
CREATE TABLE build_products (
|
CREATE TABLE build_products (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue