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
db: tenancy scope walk costs 26-44 µs per ORM statement #559
core_scope.scope_core checks every statement for raw-table references while tenancy names are set. ORM-only statements come back uncloned, but the check still costs about 26–44 µs each (against 0.2 µs when no names are set, and about 10 µs for the old exists() scan).
Profiling: _children accounts for 64% of the walk, and _froms_read / columns_clause_froms for about 12%.
Candidate fix: short-circuit Selects whose raw columns, FROMs and setup-join targets are all ORM-annotated and that have no WHERE/HAVING. Expected saving is about 5 µs per statement. This code is tenancy-critical, so tests must cover Core columns inside an ORM select. Benchmark against the load-test recipe before and after.
Activity
Tenancy walk perf + WHERE-only leak fix, PermissionDenied, TenantDele…