Show Table of Contents
3.2. Use External Materialization
Procedure 3.1. Use External Materialization
- Build a VDB using the Teiid Designer for your use case.
- Identify all the "Virtual Tables", that you think can use caching,
- Click on the table, then in the Properties panel, switch the Materialized property to "true".
- Right click on each materialized table, then choose - .
- Click on button on the Materialization Model input box.
- Select a "physical model" that already exists or create a new name for "physical model".
- Click .This will create the new model (if applicable) and a table with exact schema as your selected virtual table.
- Verify that the "Materialization Table" property is now updated with name of table that has just been created.
- Navigate to the new materialized table that has been created, and click on "Name In Source" property and change it from "MV1000001" to "mv_{your_table_name}". Typically this could be same name as your virtual table name, (for example, you might name it "mv_UpdateProduct".)
- Save your model.
Note
The data source this materialized view physical model represents will be the data source for storing the materialized tables. You can select different "physical models" for different materialized tables, creating multiple places to store your materialized tables. - Once you are have finished creating all materialized tables, right click on each model (in most cases this will be a single physical model used for all the materialized views), then use - - to generate the DDL for the physical model.
- Select the type of the database and DDL file name and click .A DDL file that contains all of the "create table" commands is generated..
- Use your favorite "client" tool for your database and create the database using the DDL file created.
- Go back to your VDB and configure the data source and translator for the "materialized" physical model to the database you just created.
- Once finished, deploy the VDB to the Red Hat JBoss Data Virtualization Server and make sure that it is correctly configured and active.
Important
It is important to ensure that the key/index information is defined as this will be used by the materialization process to enhance the performance of the materialized table.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.