jpountz commented on issue #13387:
URL: https://github.com/apache/lucene/issues/13387#issuecomment-2147657867

   > do we have such a class already (that would distinguish the tenants via 
filename prefix or so)? That's a nice idea all by itself (separate from this 
use case) -- maybe open a spinoff to explore that?
   
   I don't think we do. +1 to exploring this separately. I like that we then 
wouldn't need to tune the merge policy because it would naturally only see 
segments that belong to its group.
   
   > You would also need a clean-ish way to manage a single total allowed RAM 
bytes across the N IndexWriters? I think IndexWriter's flushing policy or RAM 
accounting was already generalized to allow for this use case, but I don't 
remember the details.
   
   Right, `IndexWriter#flushNextBuffer()` and `IndexWriter#ramBytesUsed()` 
allow building this sort of thing on top of Lucene. It would be nice if Lucene 
provided more ready-to-use utilities around this.
   
   > Searching across the N separate shards as if they were a single index is 
also possible via MultiReader, though, I'm not sure how well intra-query 
concurrency works -- maybe it works just fine because the search-time 
leaves/slices are all union'd across the N shards?
   
   Indeed, I'd expect it to work just fine.


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