Hi Sanne,
I started the work on this with an implementation based on a ParallelizationMode enum (PARALLEL or SEQUENTIAL).
After thinking a bit more about it, I think it's probably a better idea to let the user define the number of threads launched by Executors.newFixedThreadPool( rootEntities.length, "BatchIndexingWorkspace" ); (line 132 of BatchCoordinator) instead of setting it either to 1 or rootEntities.length.
Should I pursue this way and add a batchIndexingThreads(int) method to the MassIndexer?
Thanks for your feedback.
|