nickva commented on code in PR #5861:
URL: https://github.com/apache/couchdb/pull/5861#discussion_r2721898271
##########
src/couch_mrview/src/couch_mrview_compactor.erl:
##########
@@ -248,25 +251,30 @@ swap_compacted(OldState, NewState) ->
{ok, Pre} = couch_file:bytes(Fd),
{ok, Post} = couch_file:bytes(NewFd),
- couch_log:notice("Compaction swap for view ~s ~p ~p", [
+ Duration = now() - NewState#mrst.start_time,
+ couch_log:notice("Compaction swap for view ~s ~p ~p ~Bs", [
IndexFName,
Pre,
- Post
+ Post,
+ Duration
Review Comment:
Wonder if it would make sense to also log a view size (file or btree sizes)
to get idea of rate. Users can look it up but with db and signature it might
take a bit of work to figure out which design doc the signature mapped to.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]