Commit 7066ee4
committed
Remove incremental vacuum (replaced by weekly full VACUUM)
Incremental vacuum was running after every purge operation but:
- Only reclaims pages at END of file
- Doesn't help with fragmentation in MIDDLE of file
- Was effectively doing nothing (pages_vacuumed=0)
- Weekly VACUUM INTO is much more effective
Removed:
- incrementalVacuum() function from database.go
- Call to incrementalVacuum from processPurgeOperations
- Kept database stats logging for monitoring
Result: Cleaner code, weekly VACUUM handles all fragmentation1 parent 20fbf62 commit 7066ee4
2 files changed
+13
-78
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
| 380 | + | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
396 | 391 | | |
397 | | - | |
398 | 392 | | |
399 | 393 | | |
400 | 394 | | |
| |||
517 | 511 | | |
518 | 512 | | |
519 | 513 | | |
520 | | - | |
| 514 | + | |
521 | 515 | | |
522 | 516 | | |
523 | 517 | | |
| |||
572 | 566 | | |
573 | 567 | | |
574 | 568 | | |
575 | | - | |
576 | | - | |
| 569 | + | |
| 570 | + | |
577 | 571 | | |
578 | 572 | | |
579 | 573 | | |
580 | | - | |
| 574 | + | |
581 | 575 | | |
582 | 576 | | |
583 | 577 | | |
| |||
609 | 603 | | |
610 | 604 | | |
611 | 605 | | |
612 | | - | |
| 606 | + | |
613 | 607 | | |
614 | 608 | | |
615 | 609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
0 commit comments