Skip to Content
Toucan AI Docs

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 accountVariable on Host (and Port if needed). Snowflake: Account
Database on a shared serverVariable on Database (PostgreSQL, Azure SQL, Snowflake)
MySQL databaseVariable on Host if each database has its own host. Not possible through the Database field
SchemaNot covered by connection variables. A view with a tenant column, plus RLS, is one option
TableNot covered by connection variables. A view with a tenant column, plus RLS, is one option
Rows in shared tablesRLS on every table that holds tenant data
PostgreSQL policies you already haveSession variables. The database user must be subject to those policies
Column rights within the same dataCLS

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.

On this page