Index for rpm search

Related: https://pagure.io/koji/issue/3448
This commit is contained in:
Tomas Kopecek 2022-08-01 13:31:19 +02:00
parent c0a368d0d4
commit e461659a8a
2 changed files with 8 additions and 0 deletions

View file

@ -734,6 +734,7 @@ CREATE TABLE rpminfo (
CONSTRAINT rpminfo_unique_nvra UNIQUE (name,version,release,arch,external_repo_id)
) WITHOUT OIDS;
CREATE INDEX rpminfo_build ON rpminfo(build_id);
CREATE INDEX rpminfo_filename ON rpminfo((name || '-' || version || '-' || release || '.' || arch || '.rpm')) INCLUDE (id);
-- sighash is the checksum of the signature header
CREATE TABLE rpmsigs (