Skip to content

Segment membership: Automated atom GC #7418

Closed as not planned
Closed as not planned

Description

@khvn26

Scope

  • Reference-counted SegmentAtom link table, populated by ensure_atoms alongside Atom rows.
  • Sweep triggers: segment delete (drop link rows; queue zero-ref atoms for deletion) and a daily background sweep for orphans introduced by other paths (% Split revision drift, operand canonicalisation drift).
  • One-time backfill of the link table from the existing Atom catalogue.

Acceptance criteria

  • Deleting a segment that owns unique atoms removes their bitmap blobs and Atom rows.
  • Deleting a segment that shares atoms with other segments leaves the shared atoms intact.
  • The daily sweep removes % Split orphans within 24h of revision.

Activity

  1. added
    apiIssue related to the REST API
    on May 4, 2026
  2. changed the title [-]Automated atom GC[/-] [+]Segment membership: Automated atom GC[/+] on May 4, 2026
  3. khvn26 commented on May 9, 2026

    @khvn26
    MemberAuthor

    Closing as not planned. The backlog epic #7416 has been reshaped against the columnar design (RFC: Segment Membership Inspection (columnar) (private to Flagsmith team)). This issue was specific to the prior bitmap design and no longer applies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssue related to the REST API

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions