Refreshing data mart data in a table

You can use the dropPartMart() and loadPartMart() functions to refresh the data in a table instead of refreshing all the data in the data mart. The table must be a non-fragmented table. If your database table is not fragmented, your data mart table is also not fragmented. Refreshing the data in a table is faster than refreshing an entire data mart.

Before you begin

Prerequisite

Register the dropPartMart() and loadPartMart() functions in the database by using the DB-Access utility:
$ dbaccess database $INFORMIXDIR/etc/boot1170XC5iwa.sql

About this task

You can refresh the data by reloading the table data. Follow these steps when the data in one table in the database has changed. For example, when have inserted, deleted, or updated the rows in the table.

Procedure

  1. Identify the table name or use the oncheck -pt command to look up the table's partition number.
  2. Use the dropPartMart() function to drop the data from the table in the data mart.
  3. Use the loadPartMart() function to load the new data in the table in the data mart.