When the update queue contains a single element we have no opportunities to run the work in parallel: avoid the context switching in this case.
Single-task indexing transactions are very likely when used by Infinispan Query, but could happen in Hibernate Search as well.
|