allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#5026] add index on artifact_reference.project_id for reindex cmd
Date Mon, 01 Oct 2012 16:09:33 GMT
Updated Branches:
  refs/heads/master ed2751d4a -> a9a8cb2d1


[#5026] add index on artifact_reference.project_id for reindex cmd


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/a9a8cb2d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/a9a8cb2d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/a9a8cb2d

Branch: refs/heads/master
Commit: a9a8cb2d14c19ee9d1787d55fea5c8883e0a26bc
Parents: ed2751d
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Mon Oct 1 15:59:33 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Mon Oct 1 15:59:33 2012 +0000

----------------------------------------------------------------------
 Allura/allura/model/index.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/a9a8cb2d/Allura/allura/model/index.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/index.py b/Allura/allura/model/index.py
index 174f490..8d82b00 100644
--- a/Allura/allura/model/index.py
+++ b/Allura/allura/model/index.py
@@ -31,7 +31,9 @@ ArtifactReferenceDoc = collection(
             project_id=S.ObjectId(),
             app_config_id=S.ObjectId(),
             artifact_id=S.Anything(if_missing=None))),
-    Field('references', [str], index=True))
+    Field('references', [str], index=True),
+    Index('artifact_reference.project_id'),  # used in ReindexCommand
+)
 
 ShortlinkDoc = collection(
     'shortlink', main_doc_session,


Mime
View raw message