You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2012/10/02 23:30:28 UTC
[15/34] git commit: [#5026] add index on
artifact_reference.project_id for reindex cmd
[#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/db/4968
Commit: a9a8cb2d14c19ee9d1787d55fea5c8883e0a26bc
Parents: ed2751d
Author: Dave Brondsema <db...@geek.net>
Authored: Mon Oct 1 15:59:33 2012 +0000
Committer: Dave Brondsema <db...@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,