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 2013/12/20 19:51:00 UTC

[34/36] git commit: [#6388] don't instrument ming session.get

[#6388] don't instrument ming session.get

It is often a no-op, if the object is already in the identity map.  And
when it's not in the identity map and a mongo query does happen, its
covered by session.find instrumentation


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

Branch: refs/heads/db/6388
Commit: a36ec90d1787d80b7e37cdd6ef22e9410073a4e8
Parents: 3f939ba
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Thu Dec 19 17:12:27 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Fri Dec 20 17:41:43 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/custom_middleware.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/a36ec90d/Allura/allura/lib/custom_middleware.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/custom_middleware.py b/Allura/allura/lib/custom_middleware.py
index 498a614..d7cbdc9 100644
--- a/Allura/allura/lib/custom_middleware.py
+++ b/Allura/allura/lib/custom_middleware.py
@@ -194,8 +194,7 @@ class AlluraTimerMiddleware(TimerMiddleware):
             Timer('markdown', markdown.Markdown, 'convert'),
             Timer('ming', ming.odm.odmsession.ODMCursor, 'next',  # FIXME: this may captures timings ok, but is misleading for counts
                   debug_each_call=False),
-            Timer('ming', ming.odm.odmsession.ODMSession, 'flush', 'find',
-                'get'),
+            Timer('ming', ming.odm.odmsession.ODMSession, 'flush', 'find'),
             Timer('ming', ming.schema.Document, 'validate',
                 debug_each_call=False),
             Timer('ming', ming.schema.FancySchemaItem, '_validate_required',