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
{{ message }}
Repository navigation
Gateway: avoid a full role check per node credential check #139
Since M2.3g1b, every gateway authentication (each RPC, and at least once per second per stream) opens a tenant transaction. That transaction runs assertTenantDatabaseRole, a catalog query.
Scope
Measure the cost with a benchmark of 100 connected nodes.
Then propose a safe optimization: for example a short-lived cache of the role check result per connection, invalidated on error. The check must never be skipped for a new connection.
Acceptance
A benchmark before and after, and no weakening of the checks listed in SPEC 4.
Activity