Difference between revisions of "IMSMA Staging Area"
Line 10: | Line 10: | ||
===Flattening principles===__NOEDITSECTION__ | ===Flattening principles===__NOEDITSECTION__ | ||
{{Note | This section requires basic knowledge of the {{IMSMANG}} structure}} | {{Note | This section requires basic knowledge of the {{IMSMANG}} structure}} | ||
− | + | ||
− | + | {| class="wikitable" width="1000" | |
− | + | |- | |
+ | | align="center" colspan="3" | '''Where to find which data in the staging area''' | ||
+ | |- | ||
+ | | width="150pt" | '''Type of attribute''' | ||
+ | | width="250pt" | '''Where?''' | ||
+ | | width="600pt" | '''Example''' | ||
+ | |- | ||
+ | | align="left" | '''Standard text, numeric, date and time attributes''' | ||
+ | | align="left" | Stored directly in the main object table, similar to {{IMSMANG}} | ||
+ | | align="left" | The HAZARD (Land) attribute hazard_localid is stored in a column also called hazard_localid in the HAZARD table of the staging area. | ||
+ | |- | ||
+ | | align="left" | '''Standard single selects''' | ||
+ | | align="left" | Stored directly in the main object table (whereas in {{IMSMANG}} the main object table only contains a GUID reference to the IMSMAENUM table) | ||
+ | | align="left" | The HAZARD (Land) attribute status is stored in a column called status_enum in the HAZARD table of the staging area. It contains the '''translated value''' of the status base value, e.g. ''Open'' or ''Closed'' in English or the equivalent values in another language that has been specified at staging area generation. | ||
+ | |- | ||
+ | | align="left" | '''Standard multi selects''' | ||
+ | | align="left" | Stored directly in the main object table as '''comma-separated list of values''' '''AND''' in a normalized way in the <OBJECT>_STD_MULTISELECT table (in {{IMSMANG}} the values for a multi select have to be looked up in the <OBJECT>_HAS_IMSMAENUM and IMSMAENUM tables) | ||
+ | | align="left" | some example | ||
+ | |- | ||
+ | |||
+ | |||
* CDF text, numeric, and any single-select attribute values are stored directly in the main table. | * CDF text, numeric, and any single-select attribute values are stored directly in the main table. | ||
** Example: | ** Example: |
Revision as of 12:48, 19 June 2014
What is the IMSMA Staging Area?
The IMSMA staging area is a flattened version of the IMSMA operational database. In terms of content, the data is an exact copy of the IMSMA database, but the structure is much less complex and therefore easier to query. While in the operational IMSMA database the core object data (e.g. the ID and name of a Land) is stored in one table (e.g. in the HAZARD table) and descriptive attributes (such as single- and multi-select standard and custom defined fields) are stored in separate tables, in the staging area all this information is available in one single table. Therefore, there is no need to write complex queries to get to all the attributes of an object. Ultimately, reporting and data analysis tools can easily be connected to the staging area.
A staging area can be created out of an IMSMANG v.6 database.
Structure of the IMSMA Staging Area
Database model
Flattening principles
This section requires basic knowledge of the IMSMANG structure |
Where to find which data in the staging area | ||||||||||||||
Type of attribute | Where? | Example | ||||||||||||
Standard text, numeric, date and time attributes | Stored directly in the main object table, similar to IMSMANG | The HAZARD (Land) attribute hazard_localid is stored in a column also called hazard_localid in the HAZARD table of the staging area. | ||||||||||||
Standard single selects | Stored directly in the main object table (whereas in IMSMANG the main object table only contains a GUID reference to the IMSMAENUM table) | The HAZARD (Land) attribute status is stored in a column called status_enum in the HAZARD table of the staging area. It contains the translated value of the status base value, e.g. Open or Closed in English or the equivalent values in another language that has been specified at staging area generation. | ||||||||||||
Standard multi selects | Stored directly in the main object table as comma-separated list of values AND in a normalized way in the <OBJECT>_STD_MULTISELECT table (in IMSMANG the values for a multi select have to be looked up in the <OBJECT>_HAS_IMSMAENUM and IMSMAENUM tables) | some example |
|