Siebel Analytics Server Administration Guide > Query Caching in Siebel Analytics Server >

Strategies for Using the Cache


One of the main advantages of query caching is to improve apparent query performance. It may be valuable to seed the cache during off hours by running queries and caching their results. A good seeding strategy requires a knowledge of when cache hits occur.

Cache Hits

When caching is enabled, each query is evaluated to see if it qualifies for a cache hit. A cache hit means that the server was able to use cache to answer the query and did not go to the database at all. A cache hit occurs only if all of the conditions described in this section are met.

Running a Suite of Queries to Populate the Cache

To maximize potential cache hits, one strategy is to run a suite of queries just for the purpose of populating the cache. The following are some recommendations for the types of queries to use when creating a suite of queries with which to seed the cache.

In general, the best queries to seed cache with are queries that heavily consume database processing resources and that are likely to be reissued. Be careful not to seed the cache with simple queries that return many rows. These queries (for example, SELECT * FROM PRODUCTS, where PRODUCTS maps directly to a single database table) require very little database processing. Their expense is network and disk overhead—factors that caching will not alleviate.

NOTE:  When the Analytics Server refreshes repository variables, it will examine business models to determine if they reference those repository variables. If they do, the server purges all cache for those business models.


 Siebel Analytics Server Administration Guide
 Published: 11 March 2004