The mv_validity field for creating a materialized view indicates the validity period of the materialized view. HetuEngine allows you to rewrite the SQL statements using only the materialized views within the validity period.
If data needs to be updated periodically, you can use either of the following methods to periodically refresh the materialized views:
Run the refresh materialized view <mv name> command on the HetuEngine client by referring to HetuEngine, or run the refresh materialized view <mv name> command using JDBC in the service program to manually update the database.