Commit f4cfa9f
committed
feat: enable file merging by last modification time using preserve-insertion-order
This change leverages the previously unused `preserve-insertion-order`
configuration to enable merging files sorted by their last modification
time during compaction. This is particularly beneficial for append-only
workloads, improving data locality after optimize runs by merging files
that were created around similar times.
Signed-off-by: esarili <[email protected]>1 parent f67e828 commit f4cfa9f
File tree
2 files changed
+16
-3
lines changed- crates/core
- src/operations
- tests
2 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
| |||
877 | 878 | | |
878 | 879 | | |
879 | 880 | | |
| 881 | + | |
880 | 882 | | |
881 | 883 | | |
882 | 884 | | |
883 | 885 | | |
884 | 886 | | |
885 | | - | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
886 | 890 | | |
887 | 891 | | |
888 | 892 | | |
| |||
958 | 962 | | |
959 | 963 | | |
960 | 964 | | |
| 965 | + | |
961 | 966 | | |
962 | 967 | | |
963 | 968 | | |
| |||
985 | 990 | | |
986 | 991 | | |
987 | 992 | | |
988 | | - | |
989 | | - | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
990 | 1000 | | |
991 | 1001 | | |
992 | 1002 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| |||
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
| 355 | + | |
354 | 356 | | |
355 | 357 | | |
356 | 358 | | |
| |||
410 | 412 | | |
411 | 413 | | |
412 | 414 | | |
| 415 | + | |
413 | 416 | | |
414 | 417 | | |
415 | 418 | | |
| |||
0 commit comments