gsmiller commented on issue #12696:
URL: https://github.com/apache/lucene/issues/12696#issuecomment-1775717147

   I like the idea of removing the complexity associated with patching if we're 
convinced it's the right trade-off (and +1 to the pain of vectorizing with 
patching going away).
   
   Also +1 to releasing with 9.9 and not waiting. To address the back-compat 
questions a little bit, along with some of Mike's earlier questions, the number 
of patches is written into the same byte used to encode the number of 
bits-per-value used for the FOR block. We only need 5 bits to encode the 
b.p.v., and we reserve the remaining 3 to encode the number of patches (which 
is why we have an upper bound of 7 patches currently). So we can always "write" 
0 patches in this byte and remain fully backwards compatible on read, which is 
great (but it also means we can't claw back some saving by getting rid of the 
space in the index needed to encode the patches... to answer Mike's earlier 
question a bit).
   
   So I think the roll out might look something like this:
   1. In 9.x, always write zero patches when creating the index. Leave the code 
in place to handle patches if present.
   2. In 10.x, continue to support patches on read (as in 9.x) so 10.x remains 
compatible with 9.x indices.
   3. In 11.0, remove all patching logic which will, a) simplify the code a 
bit, and b) remove the (likely minor) overhead on read of looking up the number 
of patches in a block, which is always 0.


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