mdmarshmallow commented on PR #11796:
URL: https://github.com/apache/lucene/pull/11796#issuecomment-1262549378

   I agree, the former is also more intuitive to me as well for the same 
reasons. In your example, 10MB were initially written, and 9MB were written 
again in merges, so 1.9 to me means that we did 1.9 times the work of initially 
just writing the 10MB to get to the final 9MB index state.
   
   Though since this does seem like it might be a point of confusion for users 
in that there are multiple ways to calculate this, do you think it would be 
better to just expose `getFlushedBytes()` and `getMergedBytes()` and let users 
calculate the write amplification as they see fit?


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to