Skip to content

[Drift] New --incremental-only compact flag added; MongoDB V3 storage compaction restructured (powersync-service #752) #570

Description

@benitav

What's changing: PowerSync Service restructures how MongoDB storage's experimental V3 format compacts bucket data: initial replication now triggers a cheaper "chunk-merge compact" instead of checksum pre-calculation, compact runs only check buckets that may need it (so they can run on much shorter intervals), and multiple compact jobs can run concurrently. This does not affect MongoDB V1 storage, Postgres storage, or parameter-index compacting. The V3 bucket-state collection's fields/indexes changed (a breaking change for V3 storage, with no migration path, but V3 storage remains explicitly unstable). The compact command also gains a new --incremental-only option, intended for jobs running on a short interval, which skips streams using V1 storage.

High priority — existing docs are now inaccurate or incomplete
None identified. MongoDB V3 storage remains experimental/unstable and is not documented anywhere in the docs repo, so nothing existing is contradicted.

For reviewer consideration — worth documenting

Source PR: powersync-ja/powersync-service#752. Merged 2026-08-18.

Filed automatically by Claude Code (claude-sonnet-5). A human must verify the scope, prepare the docs PR, and publish it only once this update has been released.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions