garrensmith commented on a change in pull request #768: basic execution
statistics for _find
URL: https://github.com/apache/couchdb/pull/768#discussion_r134977031
##########
File path: src/mango/src/mango_cursor_view.erl
##########
@@ -70,10 +70,11 @@ explain(Cursor) ->
end.
-execute(#cursor{db = Db, index = Idx} = Cursor0, UserFun, UserAcc) ->
+execute(#cursor{db = Db, index = Idx, execution_stats = Stats} = Cursor0,
UserFun, UserAcc) ->
Cursor = Cursor0#cursor{
user_fun = UserFun,
- user_acc = UserAcc
+ user_acc = UserAcc,
+ execution_stats = mango_execution_stats:log_execution_start(Stats)
Review comment:
This is minor. But I wonder if this shouldn't be done in the create function
rather than execute.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services