Josefin Gruvander
03/21/2022, 2:11 PMBoris
03/21/2022, 2:21 PMx__client_id
is required when you are incrementally loading data to multiple workspaces with the same model (it is done per dataset) - used to decide which row goes to which workspace. So if you have a dataset where you will only load data once (i.e. some mapping or geografy data) in theory they don't have to contain the x__client_id
column, but any change will require some manual work (might not be possible to do for all client workspaces in batch).Boris
03/21/2022, 2:23 PMx__client_id
does not have to be used at all, (the data loads will have to be setup separately to each workspace)Josefin Gruvander
03/21/2022, 2:39 PMJosefin Gruvander
03/21/2022, 2:52 PMBoris
03/21/2022, 3:22 PMx__client_id
only data for particular client will be loaded, if it has not all data from the table will be loaded to client workspaces. So you can indeed have the x__client_id
only in customer table an load all (new) values from other table regardless of clientJosefin Gruvander
03/21/2022, 3:24 PMBoris
03/21/2022, 3:26 PMx__client_id
column with value master to mark down the data you want to load to the master workspace. Basically if the table contains x__client_id column, you won't be allow to trigger dataload without specifying it.Boris
03/21/2022, 3:27 PMJosefin Gruvander
03/21/2022, 3:36 PMBoris
03/21/2022, 4:03 PMMichal Hauzírek
03/21/2022, 5:47 PMCREATE VIEW out_gd_product AS
SELECT product_id, product_name, client_id as x__client_id FROM gd_product
UNION ALL
SELECT product_id, product_name, 'ALL_CLIENTS' as x__client_id FROM gd_product
◦ put the workspace normally into your segment - you will still be using the x__client_id so everything remains the same both for clients and “overall” workspace.
• Alternative option - separate data source
◦ in this case you do not have the “overall” workspace as one of the clients but separatelly next to the LCM segment
◦ you create views on top of your original tables, those view have different prefix so you can use another prefix in another data source. These views do not have the x__client_id in them (to overcome the limitation you mentioned above)
◦ you use this data source for your “overall workspace” and schedule the load in it (not in service workspace in this case, because now the “overall” workspace is not part of the segment and has slightly different configuration.
◦ this method allows you to have somehow different structure for the “overall” workspace but requires manual synchronization of the changes.Michal Hauzírek
03/21/2022, 6:02 PMJosefin Gruvander
03/22/2022, 9:15 AMBoris
03/22/2022, 11:51 AMMichal Hauzírek
03/22/2022, 12:38 PMJosefin Gruvander
03/23/2022, 7:37 AMMichal Hauzírek
03/23/2022, 11:29 AMJosefin Gruvander
03/23/2022, 12:00 PM