[LNT] r307991 - testsuitedb: Request index for Sample->RunId

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 13 19:05:02 PDT 2017


Author: matze
Date: Thu Jul 13 19:05:02 2017
New Revision: 307991

URL: http://llvm.org/viewvc/llvm-project?rev=307991&view=rev
Log:
testsuitedb: Request index for Sample->RunId

While this seems like a fatal omission, it usually didn't matter as the
migration scripts add indexes as well.

Modified:
    lnt/trunk/lnt/server/db/testsuitedb.py

Modified: lnt/trunk/lnt/server/db/testsuitedb.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/testsuitedb.py?rev=307991&r1=307990&r2=307991&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/testsuitedb.py (original)
+++ lnt/trunk/lnt/server/db/testsuitedb.py Thu Jul 13 19:05:02 2017
@@ -410,7 +410,7 @@ class TestSuiteDB(object):
             id = Column("ID", Integer, primary_key=True)
             # We do not need an index on run_id, this is covered by the
             # compound (Run(ID),Test(ID)) index we create below.
-            run_id = Column("RunID", Integer, ForeignKey(Run.id))
+            run_id = Column("RunID", Integer, ForeignKey(Run.id), index=True)
             test_id = Column("TestID", Integer, ForeignKey(Test.id),
                              index=True)
             profile_id = Column("ProfileID", Integer, ForeignKey(Profile.id))




More information about the llvm-commits mailing list