netudima commented on code in PR #4850:
URL: https://github.com/apache/cassandra/pull/4850#discussion_r3325328103


##########
src/java/org/apache/cassandra/db/ColumnFamilyStore.java:
##########
@@ -1531,6 +1531,7 @@ public void apply(PartitionUpdate update, 
CassandraWriteContext context, boolean
             StorageHook.instance.reportWrite(metadata.id, update);
             metric.writeLatency.addNano(nanoTime() - start);
             metric.totalRowsMutated.inc(update.affectedRowCount());
+            
metric.rowsMutatedPerWriteHistogram.update(update.affectedRowCount());

Review Comment:
   it will be slightly better from perf point of view to store 
update.affectedRowCount() to a local var and use in for these two metrics



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to