Chapter 6. Data Caching

Table of Contents

Select statement
Insert statement
Update statement
Delete statement

Select statement

For query by oid (query by oid is query which "where" clause contains request for DO with specified oid), first is checked in the DataStruct cache if there is DataStruct object with desired oid. If DataStruct object is not found in the cache, hitting the database is performed, and the retrieved DataStruct object is added to the DataStruct cache.

For full caching also, for query by oid, first is checked in the DataStruct cache if there is DataStruct object with desired oid. If DataStruct object is not found in the cache, hitting the database is not performed (all rows from the table are in the cache, so there is no result of this query).

For all other queries, hitting the database is immediately performed, and the query results are added to the DataStruct cache.