Do data analysis users know , We usually use BI Tools associate databases to obtain business data for analysis . But in the process of analysis , We often encounter changes in data table structure or data , In this case, we are BI How to synchronize updates in the product ? The following small series will analyze products with big data Smartbi For example , Tell you about when the database table structure changes , How to synchronize .
situation 1: When... Under the database Schema The table below 、 After the organizational structure of views and stored procedures changes , You can click to synchronize Schema The function is realized in Smartbi One key synchronization .
Perform synchronization Schema after , Will put this Schema All tables below will be added , And update the table that has been added , Equivalent to batch synchronization .
therefore , It is recommended to use this operation with caution .
Sync Schema It's simple , One click selection can be realized : Under data source Schema More operations , choice “ Sync Schema”, eject “ Sync Schema name ” Dialog box , Click ok .
situation 2: When the data table structure or data changes , The synchronous data table function helps remote users synchronize and change local data . Synchronization tables are generally single table synchronization , That is to update the structure of individual data tables under the database table . Its operation steps and synchronization Schema similar , Just expand the data source node , Select a data table , Click on more actions , choice “ Synchronization table ”, A confirmation dialog box will pop up .
It should be noted that both synchronization Schema Or synchronization table , Corresponding to the table that has been used to create resources , After the table structure in the database changes , There are three situations :
1、 Table add field , It has no impact on the generated resources .
2、 Table delete field 、 Modify fields , You need to synchronously modify the fields of the data set corresponding to the resource , After modifying the dataset, modify the resources that use this dataset .
3、 Table delete , Then the corresponding resource cannot be used .
When the data table structure changes, we can conduct impact analysis through metadata management , Find the affected data set , Then, the system information is combined to notify the content , Implement change management .








