Ad hoc query processing  Caching conditions

Chapter 1: The Statement Cache

Statement matching criteria

Adaptive Server matches an ad hoc SQL statement to a cached statement by the SQL text and by login (particularly if both users have sa_role), user ID, database ID, and session state settings. The relevant session state consists of settings for the following set command parameters:

Settings for these parameters determine the behavior of the plan Adaptive Server produces for a cached statement. For information on the set command and its parameters, see the Adaptive Server Reference Manual.

NoteYou must configure set chained on/off in its own batch if you enable the statement cache.





Copyright © 2004. Sybase Inc. All rights reserved. Caching conditions

View this book as PDF