Alternate Model Loading Process
Instead of loading models in production, you can copy specific tables to your production environment instead of loading models in real time.
Current Model Loading Process
- Create models in your catalog modeling application in the integration test environment.
- Publish these models to OPE in the integration test environment.
- Perform end-to-end tests before launching new offers or products in the test environment.
- Publish these models in OPE in the production environment.
- Perform sanity testing in production environment.
Alternate Model Loading Process
- Create models in your catalog modeling application in the integration test environment.
- Publish these models to OPE in the integration test environment.
- Perform end-to-end tests before launching new offers or products in the test environment.
- Export DATA_MODEL, DATA_MODEL_RELATION, and SERVER_CACHE tables from the integration environment.
- Copy
DATA_MODEL,
DATA_MODEL_RELATION, and
SERVER_CACHE tables to the production environment.
Start/ Open or perform a rolling restart of OPE servers.
The following are alternatives to Step 5 in the Alternative Model Loading Process.
- Option 1: Replace tables using the_TEMP table approach
- Option 2: Use Online Table Redefinition
This approach is used for table DML changes. The original table is unmodified for the duration of DDL changes. When the index is rebuilt, the process holds an exclusive lock on the table and all online requests are queued for that duration to be served later.
We used this approach for moving from non-partitioned to a partitioned database. The advantage of this approach was, no downtime is required for making table changes.
- Use online redefinition to create a new table and copy data from the _TEMP table.
- Rebuild any required indexes.
- Perform a rolling restart of OPE servers for the application to read the updated table data.
For more information on online redefinition see https://docs.oracle.com/cd/B28359_01/server.111/b28310/tables007.htm#ADMIN01514.