Time based commit for async indexing

Description

Currently we have the capacity of applying index changes using the property hibernate.search.default.worker.execution = async, which in turn will use an Executor to apply each changeset in a background thread. Still, commits are done on every changeset: it'd be nice if we have the possbility of controlling commits based on a time based configuration property like commitInterval where multiple changesets would be included on each commit. Performance gain is significant on scenarios where changesets are small (usually one or two docs).

Environment

None

Status

Assignee

Gustavo Fernandes

Reporter

Gustavo Fernandes

Labels

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Affects versions

5.0.0.Alpha7

Priority

Major
Configure