NRT performance: avoid flushing unnecessary delete operations

Description

The NRT workspace implementation is currently flushing delete operations frequently - even though we can detect some cases in which we actually don't need to flush them.

This seems to be important as a delete operation is potentially very expensive.

Environment

None
Fixed

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure