If you have a lot of data and want to keep throwing it into a data warehouse, Snowflake (opens in a new tab) is a tried and tested solution. They continue to push the boundaries of SQL and analytics features and their data sharing features between organizations are particularly strong for larger enterprises.
About 50% of Hashboard's customers use Snowflake. If you're using AWS, Snowflake could be a good solution for you. If you don't have much data, using Postgres, Redshift, or even DuckDB could be good options too. Compared to Redshift, Snowflake has a more modern architecture with decoupled storage and compute that can scale to larger datasets more easily. This architecture is also much easier to manage with more flexibility over how much compute you use and fewer required decisions over how you lay out data. If Google Cloud is an option, you may also want to consider BigQuery as an alternative to Snowflake.
- Sign up for a 30 day trial (opens in a new tab) on Snowflake if you don't have an account.
- Create a Snowflake user that Hashboard can use.
- Set up a database connection in Hashboard.
You can run the following script. Make sure you fill out your database name, warehouse and a password in the script:
use role ACCOUNTADMIN; set database_name = '--YOUR DATABASE NAME--'; set warehouse_name = '--YOUR WAREHOUSE NAME--'; set hashboard_user = 'HASHBOARD_USER'; set hashboard_role = 'HASHBOARD_ROLE'; create user if not exists identifier($hashboard_user) password='--YOUR PASSWORD--'; create role if not exists identifier($hashboard_role); grant role identifier($hashboard_role) to user identifier($hashboard_user); -- grant Hashboard role access to warehouse grant USAGE on warehouse identifier($warehouse_name) to role identifier($hashboard_role); -- grant Hashboard access to database grant MONITOR, USAGE on database identifier($database_name) to role identifier($hashboard_role); grant USAGE on all schemas in database identifier($database_name) to role identifier($hashboard_role); grant SELECT on all tables in database identifier($database_name) to role identifier($hashboard_role); grant SELECT on future tables in database identifier($database_name) to role identifier($hashboard_role);
- First, go to your Hashboard settings (opens in a new tab) page from the project dropdown
+ New Database Connectionand fill out the fields below
- Account: Your snowflake account identifier (opens in a new tab) is provided by Snowflake and included in the start of the URL you use to login to Snowflake:
- User: The Snowflake user. Best practice is to have a service user specifically dedicated to Hashboard.
- Password: The password used to login to Snowflake.
- Database: The Snowflake database to use. Databases correspond with logical groupings of tables and views in Snowflake.
- Schema: optional If you provide a schema, we will limit listed tables in the model builder to this schema. If you need to limit permissions to a specific schema, you should do this with Snowflake permissions.
- Warehouse: The warehouse to use in Snowflake. Warehouses correspond with compute resources.
- Role: You must specify a role to be assumed when connecting from Hashboard. See Snowflake's roles (opens in a new tab) documentation.