Entity Re-Home Profile¶
The performance of programmatically changing the home repository of an existing entity instance.
The Open Metadata Repository Services (OMRS) interface for a metadata repository defines an optional method for changing the home repository of entity instances:
| Method | Description |
|---|---|
reHomeEntity |
changes the home repository of an entity |
Assertions
| ID | Description |
|---|---|
repository-entity-re-home-performance-reHomeEntity |
See (2) in detailed logic below. |
For every entity type supported by the technology under test, this profile does the following (in order):
- Searches for
instancesPerTypereference copy entity GUIDs of that type. (This usesfindEntitiesByPropertywith a condition onmetadataCollectionIdand its performance is recorded as part of the entity search profile.) - For each of these entity GUIDs,
reHomeEntityis called to change the home repository to the technology under test'smetadataCollectionId.
Example
So, for example, if the technology under test supports 50 entity types, and the instancesPerType parameter is set to 100, then this profile will re-home 50 (types) x 100 (instances per type) = 5000 entities. (And it will run findEntitiesByProperty 50 times.)
Raise an issue or comment below