incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [12/17] git commit: [#6388] don't instrument ming session.get
Date Thu, 02 Jan 2014 16:17:02 GMT
[#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/b97e47f2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/b97e47f2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/b97e47f2

Branch: refs/heads/master
Commit: b97e47f27f54b3def8bddfd1a434b6f2c06fc841
Parents: ec1e8d0
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Thu Dec 19 17:12:27 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Thu Jan 2 16:16:20 2014 +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/b97e47f2/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',


Mime
View raw message