incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/2] git commit: [#7224] instead of timing a whole ming flush(), time each object op within a flush
Date Wed, 26 Feb 2014 17:01:47 GMT
[#7224] instead of timing a whole ming flush(), time each object op within a flush

This will give us more accurate representation in call counts, and more
useful and detailed information when DEBUG logging timermiddleware.


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

Branch: refs/heads/db/7224
Commit: 4d4e1d80680d835e11a5a0012f8ca188dc28e215
Parents: 7ad8965
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Wed Feb 26 16:58:57 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Feb 26 16:58:57 2014 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/4d4e1d80/Allura/allura/lib/custom_middleware.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/custom_middleware.py b/Allura/allura/lib/custom_middleware.py
index b6797e3..ad1f276 100644
--- a/Allura/allura/lib/custom_middleware.py
+++ b/Allura/allura/lib/custom_middleware.py
@@ -217,7 +217,8 @@ 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',
+            Timer('ming', ming.odm.odmsession.ODMSession,
+                  'insert_now', 'update_now', 'delete_now',
                   'find', 'find_and_modify', 'remove', 'update', 'update_if_not_modified',
                   'aggregate', 'group', 'map_reduce', 'inline_map_reduce', 'distinct',
                   ),


Mime
View raw message