Commit c0e6aabe authored by Dan McGee's avatar Dan McGee Committed by Lukas Fleischer
Browse files

Fix performance issues with new PackageDepends lookups



We do a lookup by DepName in the package details view, but I made the
silly mistake of forgetting this index addition in the upgrade steps.

Lukas: Fix numbering in "UPGRADING".

Signed-off-by: default avatarDan McGee <dan@archlinux.org>
Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 0e9f8c0f
......@@ -9,13 +9,15 @@ each AUR upgrade by running `make install` in the "po/" directory.
2. Remove the "NewPkgNotify" column from the "Users" table:
----
ALTER TABLE Users DROP COLUMN NewPkgNotify;
----
3. Rename "web/lib/config.inc" to "web/lib/config.inc.php".
3. Fix up issues with depends performance on large dataset.
ALTER TABLE PackageDepends ADD INDEX (DepName);
4. Rename "web/lib/config.inc" to "web/lib/config.inc.php".
4. Merge "web/lib/config.inc.php.proto" with "web/lib/config.inc.php".
5. Merge "web/lib/config.inc.php.proto" with "web/lib/config.inc.php".
From 1.8.1 to 1.8.2
-------------------
......
......@@ -123,6 +123,7 @@ CREATE TABLE PackageDepends (
DepName VARCHAR(64) NOT NULL,
DepCondition VARCHAR(20),
INDEX (PackageID),
INDEX (DepName),
FOREIGN KEY (PackageID) REFERENCES Packages(ID) ON DELETE CASCADE
) ENGINE = InnoDB;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment