Description
The DocumentNodeStore background thread handles quite a few task currently like
- Clean orphaned branches
- Clean collisions
- Split documents
- Background write - write back pending updates to _lastRev
- Detect change in head revision from backend
- Cache invalidation
- Revision Comparator purge
The background operation is scheduled to be performed every second (1s frequency). However at times some of the above task take more time which delay in picking up the changes from backend. For quick propagation of changes in cluster it is essential that work done in background thread is performed quickly. To enable that we should move out task which are not directly related to head revision change like splitDocument.