Create namespace and split data from certain database to put in it
I need to split existing tables from database and put some parts of them into a new namespace. I dont know where to start, other than the installer.cls file. If you can provide clear instructions i would be greatful.
Example:
I have NAMESPACE=NEWTEST and DB
The i need to take TABLES from that DB pull specific data from them and bind it to NEWTEST
Product version: IRIS 2022.3
$ZV: 368U
Hello,
Basically, a namespace is a "logical" place that can have it's data from more than 1 database.
You have namespace1 binded to database1.
When you create a new namespace2 (binded to database2) and then create a "global mapping" for namespace2 to point for your specific globals from database1
Thank you for your answer!
Here is a quick video about databases and namespaces that may help you get started with your plan for what is needed:
https://learning.intersystems.com/course/view.php?id=1130
Thank you for your answer! This video helped.
Database is a physical file containing globals.
Namespace is a logical combination of one or more databases.
By default Namespace has two databases:
In addition to that, namespace can have any amount of mappings. Mappings map specified globals/code from a specified database.
When you try to access a global, first global mappings are searched for this global, if no mappings are found, the GLOBALS database is used.
When you try to access some code, first package/routine mappings are searched for this code, if no mappings are found, the ROUTINES database is used.
To split data innto a separate DB: