Skip to content

Commit

Permalink
add index on rhnserverneededcache server/errata id to speed up certai…
Browse files Browse the repository at this point in the history
…n queries (bsc#1211912)
  • Loading branch information
lucidd authored and mcalmer committed Oct 24, 2023
1 parent 5c9b3c0 commit ed89e90
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions schema/spacewalk/common/tables/rhnServerNeededCache.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ CREATE INDEX rhn_snc_cid_idx

;

CREATE INDEX rhn_snc_seid_idx
ON rhnServerNeededCache (server_id, errata_id);

CREATE INDEX rhn_snc_speid_idx
ON rhnServerNeededCache (server_id, package_id, errata_id)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- add index on server needed cache to improve performance for some queries (bsc#1211912)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS rhn_snc_seid_idx
ON rhnServerNeededCache (server_id, errata_id);

0 comments on commit ed89e90

Please sign in to comment.