Experimental Multiple warehouse connections are behind the
multi-connection-projects feature flag, and the flow and wording on this page may change between releases. Contact Lightdash support to enable it for your organization. Self-hosted instances need an Enterprise license and multi-connection-projects in LIGHTDASH_ENABLE_FEATURE_FLAGS. What Experimental means.Requirements and limits
- You need permission to manage the project.
- Only Postgres and Athena projects can switch, and every extra connection uses the primary’s warehouse type. You can’t change that type while extra connections exist.
- Preview projects can’t switch, and neither can a project whose warehouse uses organization credentials.
- The switch is one way. You can remove extra connections, but the app can’t switch the project back.
- One query can’t combine tables from two connections.
- When the feature flag is off, no project can switch or add a connection. Projects that already switched keep working.
Enable multiple connections
In Project settings → Connection settings, click Enable multiple connections on the Connections card. If the button is disabled, its tooltip says why.

Manage connections

Run a dbt source on another connection
The primary dbt source always runs on the primary connection. Each additional dbt source can run on any connection, and its explores move on the next compile.
Query a connection in the SQL runner

Explores, charts and dashboards


Personal warehouse credentials
Extra connections follow the primary’s Require users to provide their own credentials setting. When it is on, people need personal credentials for each connection they query, and the credentials switcher in the navigation bar has one section per connection.
Deploy from the CLI
lightdash deploy without a source deploys to the primary connection. To deploy explores to an extra connection, name the dbt source that runs there:
lightdash preview and lightdash start-preview take the same flag, and lightdash config set-source stores a default. The deploy stops if your dbt target’s database doesn’t match the connection. See the CLI reference.
Preview projects copy every connection, and their explores and SQL charts use the copies.
Content as code and promotion
SQL charts and virtual views on an extra connection download with the connection’s name, for exampleconnection: Reporting replica. Content on the primary has no connection: field.
An upload can’t move content to another connection. A file that names another connection, or drops the field, fails:
Remove a connection
You can remove an extra connection only when no explores, dbt sources, SQL charts or running queries use it. The primary can’t be removed. Move that content first, or contact Lightdash support if you can’t. When the last extra connection goes, the project works like a single-connection project again.
