Ensuring a result set includes the most current data

Occasionally you want a specific query to access the most current data, which is stored on the database server. You can turn off acceleration temporarily to run the query.

About this task

The data that is stored on the accelerator server is a snap-shot of the data on the database server. If you need to ensure that a query result set includes the most current data, turn off acceleration, run the query, and turn on acceleration again:

Procedure

  1. Specify the SET ENVIRONMENT use_dwa 'accelerate off' statement at the beginning of the query to turn off acceleration. Setting this variable ensures that the query is processed by the Informix® database server and not processed by the accelerator server.
  2. Add the statement SET ENVIRONMENT use_dwa 'accelerate on' at the end of the query to activate acceleration again.
  3. Run the query.