Files
mirror-3x-ui/internal
Hamed b7998cb334 perf(nodes): avoid scanning unchanged membership revisions
Introduce durable per-inbound membership revision tokens to reduce repeated materialization of unchanged client-inbound associations.

Maintain revisions with PostgreSQL statement-level transition-table triggers and SQLite row-level triggers, separate from hot inbound counters. Preserve client revisions, outside ownership and full-digest fallback for missing or malformed tokens. Validate compact membership and cache within the same transaction, retain the PostgreSQL maintenance fence, and revalidate cache admission after commit.

Regression coverage includes direct writes, rollback, concurrent outside attachment, malformed tokens and simulated legacy schema reopen. CI #47194895178 passed all 12 jobs, including 17 required PostgreSQL snapshot regressions.

Merge independently by maintainer request. Shared-claim cache admission remains unchanged and is tracked by #7278. Earlier benchmarks show lower revision-read volume but additional SQLite bulk writer occupancy; combined performance acceptance remains outstanding. No production SLA or full binary downgrade certification is implied.

Refs #7295
2026-12-04 00:22:09 +03:30
..
2026-11-29 23:08:14 +03:30