mikemccand commented on PR #11780:
URL: https://github.com/apache/lucene/pull/11780#issuecomment-1276316505

   > 3\. Allow the user to update the ordinal maps in the reader states they 
already have without requiring them to completely recreate the reader states. 
I’m not sure how much this accomplishes. The Javadoc suggests that the bulk of 
the work in instantiating a SortedSetDocValuesReaderState is building the 
ordinal map. In that case, updating the ordinal maps instead of recreating the 
reader states doesn’t have much benefit.
   
   I think this is not a great option (in-place update) because it'd break 
Lucene's point-in-time semantics.  It would be nice to be able to create a new 
`OrdinalMap` for a refreshed reader by passing in the old `OrdinalMap` and 
being more "incremental" in how the new one is created (building on, but not 
altering, the old one)?  But that is really a separate issue and is quite 
complex I think :)
   
   > 1. Do nothing. The user can already instantiate new reader states after a 
refresh if they want. No new API is required.
   
   +1 for this option -- I don't see why this is a problem for 
users/applications.  No need to do this atomically under the refresh lock.


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