Archiving the Decision Center database
To reduce the Decision Center database size and improve performance, you can archive inactive records.
Records in the database are either active or inactive. Active records are records used by current rule projects. Inactive records are no longer in use, but are needed for queries.
Create a new schema for the active records
Write an SQL script that copies the active records to the new schema
To execute the script you can use a dedicated database connection tool or the execute-schema.
You can remove active records from the old schema, which means that the database user for the new data source needs write permission for the old schema. If you remove inactive records from the old schema, the “active” baseline is removed from that database and you can no longer update the old database. In this case, the old database is replaced by a new baseline corresponding to the archive date.
gen-archive-repository-role
This task uses the same parameters as the task that builds the role for the migration process (gen-migrationXX-script).
gen-archive-repository-script
You can specify the following additional parameters for this task:
server.url — The URL to access Decision Center
datasourceName — The new data source name
oldDatabaseSchemaName — The database user used in the previous data source
archiveDate — (Optional) The date that specifies which records to copy from the old data source to the new one
If you do not specify archiveDate, surfaceMode is used. This mode copies into the new schema only versions of elements that are referenced by a baseline.
dropOldData — (Optional) Indicates whether or not to delete the active records from the old database schema
The default value is false. You cannot use the dropOldData feature with surfaceMode.