herddb
herddb copied to clipboard
Checkpoint: Reorder operations
Actually checkpoint execute page manipulations as: cleanup dirty page
- cleanup dirty pages
- compact small pages
- flush temporary pages
Just step 3 is strictly needed.
The process should be changed as:
- flush temporary pages
- cleanup dirty pages
- compact small pages
With 3 timeout for the whole checkpoint, just cleanup phase and just compaction phase.
Compaction & Cleanup timeouts already implemented. Remains operation reorder (with new changes could be even simpler...). Data remaining from last halfempty newpage will be used for dirty & small pages rebuild