Ahmad
Multi-tenancy tenantMenu performance (query count)
I've noticed that when the tenant menu is enabled to display all tenants a user belongs to, and the list of tenants is big, Filament performs a permission check (via a policy) for each resource across all tenants. This results in a significant number of unnecessary queries, as permissions should only be checked for the current tenant. Any reasons why this happens? and if there's a way to optimize or avoid this behavior?
5 replies