Search



Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Most composite views should to gather all the required data from the table views for the same snapshot as illustrated in 

Caption reference
CapRefIdsource-views-for-data-in-composite-views-of-different-snapshots
CapRefTypeTable
.

Caption label
CapIdsource-views-for-data-in-composite-views-of-different-snapshots
CapTypeTable
Source Views for Data in Composite Views of Different Snapshots


Composite Viewsnap_pref
snap1_pref
snap2_pref
Description Viewsnap_descriptionsnap1_descriptionsnap2_description
Language Refset Viewsnap_refset_languagesnap1_refset_languagesnap2_refset_language


Composite views may themselves gather data from other composite views. For example as shown in  gets in 

Caption reference
CapRefIdcomposite-view-including-data-from-another-composite-view
CapRefTypeTable
 gets preferred term data from the preferred term composite views shown above.

Caption label
CapIdcomposite-view-including-data-from-another-composite-view
CapTypeTable
Composite View Including Data from Another Composite View


Composite Viewsnap_rel_prefsnap1_rel_prefsnap2_rel_pref
Concept Viewsnap_conceptsnap1_conceptsnap2_concept
Relationship Viewsnap_relationshipsnap1_relationshipsnap2_relationship

Preferred Term View

snap_prefsnap1_prefsnap2_pref

Composite views designed to support review of changes may gather data from different views as illustrated in 

Caption reference
CapRefIdsource-views-for-data-in-historical-composite-views-of-different-delta-views
CapRefTypeTable
.



Caption label
CapIdsource-views-for-data-in-historical-composite-views-of-different-delta-views
CapTypeTable
Source Views for Data in Historical Composite Views of Different Delta Views


Composite Viewdelta_inactive_concepts
delta1_inactive_concepts
delta2_inactive_concepts
Concept Viewdelta_conceptdelta1_conceptdelta2_concept
Association Refset Viewsnap_refset_associationsnap_refset_associationsnap_refset_association
Attribute Value Refset Viewsnap_refset_attributevaluesnap_refset_attributevaluesnap_refset_attributevalue

Preferred Term View

snap_prefsnap_prefsnap_pref

Fully Specified Name View

Footnote Macro

The views snap_fsn, snap1_fsn and snap2_fsn are composite views similar to snap_pref but return the fully specified name rather than the preferred term.


snap_fsnsnap_fsnsnap_fsn

Representation of Composite Views

Composite views should be represented as database views rather than a physical database tables. Composite views denormalize data by combining the same data in different views therefore attempts to represent composite views as database tables is likely to rapidly multiply the size of the database. The example below is just one of many cases where creating concrete database tables to accommodate composite views might seem an attractive idea. However, pursuing this would create redundant data with few benefits, a major impact on storage requirements and a significantly more complex maintenance process when reviewing and installing future release packages. In contrast, representing composite views as database views, ensures the data is derived in real-time from tables representing the authoritative content of the full and/or snapshot release files.

Info
titleExample

Most english English language descriptions are either preferred or acceptable in both US and GB english. Therefore instantiating tables that represent the sets of preferred and acceptable terms in either or both dialects would not only duplicate much of the data in that table but would require even more space to duplicate the relevant indexes. In addition to the impact of disk space, data duplicated in these composite tables would need updating to take account of new releases.

...