You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2014/07/25 13:09:23 UTC

[13/16] git commit: [#7524] ticket:620 Add an index on audit_log.user_id

[#7524] ticket:620 Add an index on audit_log.user_id


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

Branch: refs/heads/je/42cc_7524
Commit: 9a1c397e1cb0d4683fda0ac5cde6a0e975d29330
Parents: 5c72de3
Author: Igor Bondarenko <je...@gmail.com>
Authored: Fri Jul 25 11:44:16 2014 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Fri Jul 25 11:44:16 2014 +0300

----------------------------------------------------------------------
 Allura/allura/model/auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/9a1c397e/Allura/allura/model/auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py
index aa5a7a7..c9ba690 100644
--- a/Allura/allura/model/auth.py
+++ b/Allura/allura/model/auth.py
@@ -868,7 +868,7 @@ audit_log = collection(
     Field('_id', S.ObjectId()),
     Field('project_id', S.ObjectId, if_missing=None,
           index=True),  # main view of audit log queries by project_id
-    Field('user_id', S.ObjectId, if_missing=None),
+    Field('user_id', S.ObjectId, if_missing=None, index=True),
     Field('timestamp', datetime, if_missing=datetime.utcnow),
     Field('url', str),
     Field('message', str))