summaryrefslogtreecommitdiffstats
path: root/support/schema
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-22 17:04:10 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-06-25 11:29:52 +0200
commitc0e6aabeb13487e798c6b3e54926e3362dcc2773 (patch)
tree70826c5c8beb778d47bdf5fe67fa78cb1fad70ca /support/schema
parent0e9f8c0ff5a315814de3223e5987812fa3a81447 (diff)
downloadaur-c0e6aabeb13487e798c6b3e54926e3362dcc2773.tar.gz
aur-c0e6aabeb13487e798c6b3e54926e3362dcc2773.tar.xz
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: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'support/schema')
-rw-r--r--support/schema/aur-schema.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/schema/aur-schema.sql b/support/schema/aur-schema.sql
index e64ae82b..88d074e3 100644
--- a/support/schema/aur-schema.sql
+++ b/support/schema/aur-schema.sql
@@ -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;