Best practices: choosing an isolation setup
Pick the Toucan AI setting that matches how your data is already organised.
Target Audience: Makers & Developers
This optional guide helps you pick a Toucan AI setting for the way your data is already organised. It does not require you to change your databases.
| Your data is separated by... | Toucan AI setting |
|---|---|
| Server, instance or account | Variable on Host (and Port if needed). Snowflake: Account |
| Database on a shared server | Variable on Database (PostgreSQL, Azure SQL, Snowflake) |
| MySQL database | Variable on Host if each database has its own host. Not possible through the Database field |
| Schema | Not covered by connection variables. A view with a tenant column, plus RLS, is one option |
| Table | Not covered by connection variables. A view with a tenant column, plus RLS, is one option |
| Rows in shared tables | RLS on every table that holds tenant data |
| PostgreSQL policies you already have | Session variables. The database user must be subject to those policies |
| Column rights within the same data | CLS |
Before going live:
- Apply schema changes to every routed source. Schema refresh reads only the source set by the default values.
- If connection credentials are shared, the account can reach every source. Give it read-only access.