Next Prev Up Top Contents Index

16.3.1.3 Caching of table queries

Operations which add or modify records sometimes need to perform an internal query to obtain type information for the relevant attributes. In principle it is possible for the database schema to change between update operations, and hence this query is run for each update operation. This can be a significant overhead.

For tables which are guaranteed to have a constant schema, you can optimize performance by adding a cache of these internal query results, using the function cache-table-queries . This can also be used to reset the cache if the table schema is actually altered. To control the default caching behaviour throughout every database connection, you can set the variable *cache-table-queries-default* .


LispWorks User Guide - 18 Feb 2003

Next Prev Up Top Contents Index