Skip to content

Request: Make it possible to disable schema check when connecting to a tenant #481

Description

@senny

The current PostgreSQL adapter checks if the schema exists whenever the tenant is changed. Our application connects to a new tenant on every request. While the schema check is usually fast, with a high request throughput it starts to add up. Summed up per day, our database spends a lot of time verifying the same thing over and over again.

We have a fixed list of available tenants. We need to restart anyway when we add a new tenant. At the point where Apartment.tenant_names includes a tenant, we are certain that the schema exists. And if not, it's fine to blow up.

It would be great if there was a possibility to disable this check with a configuration of sorts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions