Is it okay to update json file for database name in case of multi-tenant setup?

Problem Statement:

  • We have 1 master json file with all artifact details (app, dashboard, visuals, datasets, custom javascripts).
  • When we import artifacts, we have an option to select the Connection Name, but there is no option to select Database Name against which the artifacts are to be imported.
  • As of now, we update the Database Name in json file before importing artifacts for each tenant. Is this the correct way to do so?

Any suggestions?

@soumyaawasthi you are correct, the artifacts are currently hardcoded to use the same tables.

What you suggested by manually renaming the database name in the JSON file before importing should be safe.

1 Like