Entity Purge Profile¶
The performance of programmatically hard-deleting (irreversibly) existing entity instances.
The Open Metadata Repository Services (OMRS) interface for a metadata repository defines optional methods for hard-deleting entity instances:
Method | Description |
---|---|
purgeEntity |
completely removes an entity instance homed in the technology under test (including all of its history) |
purgeEntityReferenceCopy |
completely removes an entity instance that is homed somewhere other than the technology under test (including all of its history) |
Assertions
ID | Description |
---|---|
repository-entity-purge-performance-purgeEntity |
See (3) in detailed logic below. |
repository-entity-purge-performance-purgeEntityReferenceCopy |
See (5) in detailed logic below. |
For every entity type supported by the technology under test, this profile does the following (in order):
- Searches for
instancesPerType
entity GUIDs homed in the technology under test. (This usesfindEntitiesByProperty
with a condition onmetadataCollectionId
and its performance is recorded as part of the entity search profile.) - For each of these entity GUIDs,
deleteEntity
is called to soft-delete the instance. (This is necessary before a hard-delete can be done against the instance and its performance is recorded as part of the entity delete profile.) - For each of these entity GUIDs, a
purgeEntity
is then called to hard-delete the instance. - Searches for
instancesPerType
reference copy entities. (This usesfindEntitiesByProperty
with a condition onmetadataCollectionId
and its performance is recorded as part of the entity search profile.) - For each of these reference copy entity instances,
purgeEntityReferenceCopy
is called to remove the reference copy instance.
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 remove 50 (types) x 100 (instances per type) x 3 (home + reference copy methods) = 15 000 entities. (And it will run findEntitiesByProperty
100 times.)
Raise an issue or comment below