incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [01/14] git commit: [#6545] re-order app_config_id, label index so it can be shared
Date Tue, 10 Sep 2013 16:17:21 GMT
Updated Branches:
  refs/heads/master 5445e8403 -> 27f2b34ac


[#6545] re-order app_config_id,label index so it can be shared

..shared with the main app_config_id index.  It was added in 1fc1d377
for faster ticket label lookup, but the order doesn't matter, so
better to share the first part of the index.


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

Branch: refs/heads/master
Commit: 28d8c31ee0cfb67005d5f9ecc7c855df92e4cafc
Parents: 5445e84
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Wed Sep 4 13:53:35 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Sep 10 14:31:47 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/artifact.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/28d8c31e/Allura/allura/model/artifact.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/artifact.py b/Allura/allura/model/artifact.py
index 3910cad..9f91c6b 100644
--- a/Allura/allura/model/artifact.py
+++ b/Allura/allura/model/artifact.py
@@ -61,7 +61,9 @@ class Artifact(MappedClass):
     class __mongometa__:
         session = artifact_orm_session
         name='artifact'
-        indexes = [ 'app_config_id', ('labels', 'app_config_id') ]
+        indexes = [
+            ('app_config_id', 'label'),
+        ]
         def before_save(data):
             if not getattr(artifact_orm_session._get(), 'skip_mod_date', False):
                 data['mod_date'] = datetime.utcnow()


Mime
View raw message