Hi there folks, I'm a SaaS developer relatively ne...
# ask-ai
t
Hi there folks, I'm a SaaS developer relatively new to the ETL space and have few questions regarding the possibilities of Airbyte. For my client I'm building a platform where companies can create an account, and see their key metrics in a dashboard, a multi-tenant architecture so to say. The metrics we want show, should be extracted from the companies' CRM and Accounting tool. Therefore we will have a lot of incoming connections with many difference CRM tools and Accounting tools. Now my question is: Imagine I have 5 different companies utilizing Hubspot, what's the most effective way to bundle them in one Postgres database? Important: I still need to be able distinguish all the different companies. Is this possible?
u
Yes, it is possible to bundle data from multiple companies utilizing Hubspot into one Postgres database using Airbyte. You can create separate connections for each company in Airbyte, each with its own source (Hubspot) and destination (Postgres database). To distinguish between different companies, you can use the
namespace
feature in Airbyte. When setting up the destination in Airbyte, you can specify a namespace for each connection. This namespace can be the name of the company, for example. In the Postgres database, this namespace will be used as the schema name. This way, data from different companies will be stored in separate schemas in the Postgres database, allowing you to distinguish between them. In addition, you can also consider using the
prefix
feature to add a prefix to your tables. This can be useful if you want to further distinguish between different data sources within the same company. For more complex transformations and data cleaning, you can use dbt, which integrates well with Airbyte. For example, you can use dbt to create association tables or adjust data types, as mentioned in a [forum post](https://discuss.airbyte.io/t/4035) on the Airbyte community forum. Finally, for multi-tenant environments, you might find this [webinar](

https://www.youtube.com/watch?v=4KFLnicswGs

) useful. It discusses how to use Airbyte in a multi-tenant environment and how to integrate Airbyte with other technologies like Airflow and dbt. Please note that you should ensure that you have the necessary permissions to access and store data from these companies, and that you comply with all relevant data protection regulations.