You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ship the ability to count, list, sample, and stream the identities matching a segment, in both self-hosted and Edge API projects.
Settings
settings.SEGMENT_MEMBERSHIP_ENABLED — Django boolean. Off by default, gates index maintenance signals so the feature is a dark no-op in self-hosted and SaaS until enabled.
Feature flags
segment_membership_index (Flagsmith on Flagsmith) — gates the SaaS rollout per organisation, plus the denylist for outlier orgs.
Core concept
Reduce segment evaluation to set algebra over a finite atom basis, materialise atoms as Roaring bitmaps in core Postgres, compose bitmaps to compute membership. Async maintenance via task processor. Read API exposes count / sample / members. Edge envs populated via DDB scan during backfill (no CDC in v1).
PK-as-ordinal: Identity.id is the bitmap ord directly — no IdentityOrdinal table, no allocation hot path.
Activity
EdgeIdentityViewSetcomposite-key lookup #7414[-]Segment membership inspection V1[/-][+]Epic: Segment membership inspection V1[/+]EdgeIdentityViewSetcomposite-key lookup #7414khvn26 commentedon May 9, 2026
Superseded by #7469 — V1 (Beta) epic for the columnar design. The bitmap-based design this epic scoped was retired in favour of the columnar approach.
EdgeIdentityViewSetcomposite-key lookup #7414