Normalizing NoSQL Database Models
You can use normalization to define relationships if the source collection has a primary key.
To define relationships using normalization, follow these steps:
- On the ribbon, click Actions > Normalization.
The Normalization dialog box appears. - Select appropriate values in the fields. Refer to the following table for field descriptions.
Field
Description
Additional Information Auto Normalization Specifies whether the normalization should be through an auto-mechanism Indicates that the source collection is determined through an auto-mechanism Source Specifies the source collection for normalization
Relationship Type Specifies the relationship type for normalization
Auto: Indicates that a parent array forms one-to-many relationships with other child entities and a parent object forms one-to-one relationships with other child entities
One to One: Indicates that one-to-one relationships are formed between entities
One to Many: Indicates that one-to-many relationships are formed between entities
No Relationship: Indicates that no relationship is formed between entities
Cascading Specifies the factors based on which a collection is normalized into multiple collections
All: Specifies whether all child levels in the source collection are normalized
Levels: Specifies the number of levels at which a collection is normalized into separate collections. For example, if you set Level to 1, all fields up to level 1 in the hierarchy will be normalized into separate collections.
Single Subitem: Specifies whether the different levels in a collection are considered as a single sub-item for normalization. This option applies to collections with multiple levels of sub-items.
Auto Cleanup: Specifies whether the source collection should be deleted after normalization
Blank Cleanup: Specifies whether the empty collections should be deleted after normalization. The empty collections are displayed if the collection data type is an object.
- Click OK.
The source collection is split into multiple collections.
Copyright © 2024 Quest Software, Inc. |