Hi — I’m trying to have DEV/PROD trackers go to th...
# support
d
Hi — I’m trying to have DEV/PROD trackers go to the respective snowflake data warehouses (`events_dev`/`events_prod`). We’re trying to avoid having the name ‘`marketing_site_dev`’ as the name of the schema which is automatically being created from the name of the source. Ideally the warehouse would look like this: • events_dev ◦ marketing_site • events_prod ◦ marketing_site The name of sources in a workspace have to be unique so I can’t have 2 sources named ‘marketing site’ even if the destinations are different (dev / prod). What’s the best method to organize dev/prod trackers (i.e. marketing site) so they route correctly to the (`events_dev`/`events_prod`) database in Snowflake without ‘dev/prod’ in the schema names?
Hi @plain-parrot-49913 - can anyone help on this question?
p
hey @dazzling-football-41974, you can change the schema name in the warehouse destination config to be whatever you want it to be, if not set it will default to the name of the source but if you set both schema in separate destinations as "marketing_site" it should allow that.
This is assuming you are using two different warehouse destinations
d
Hey @plain-parrot-49913, yep, I have 2 different warehouse destinations — one for
dev
and one for
prod
. My challenge with changing the namespace on the destination is that it changes it for all trackers that route events to that destination. I have multiple trackers routed to dev & prod.
p
hey @dazzling-football-41974, one solution I can think of for this, is creating two destinations, one for marketing tracking and one for everything else, unfortunately there's no way currently to dynamically select a namespace based on the source value