Developer Documentation Library > Interviewer - Server > UNICOM Intelligence Interviewer architecture > Interview Service tier > Value cache
 
Value cache
The value cache stores hierarchical collections of variables and values. For UNICOM Intelligence Interviewer, the value cache stores data that can be used for restarting timed out or stopped interviews and for rolling back active interviews when a respondent or interviewer snaps back to a previous question. The value cache also acts as a temporary repository for data awaiting transfer into the case data database.
How the value cache is used
This topic uses default values for folders and other settings. To change these values, see Value cache registry settings.
The value cache is in the folder named in the InterviewCacheUNC site property in DPM, and is normally:
\\<dim_remote_admin_name>\SPSSMR_FMRoot\Interview\Cache
Each Interviewing server also has a local Value Cache in the Cache folder in the UNICOM Intelligence Interviewer installation folder. (Do not use the same folder for the local and shared copies of the value cache. This is because, before writing to a cached file, the system checks for the file it wants in both the shared and local folders. If a file is found in both locations, the local version is deleted so that the shared one will be used. If the two settings point to the same folder, the file that the system needs to use will already have been deleted.)
The Value Cache contains files with unique, computer generated names that match the interview session ID, and that end with a .chj extension. Each file contains the data for one interview. This topic refer to these files as cached data files, but some topics refer to them as subscriptions.
The Interview Object model (IOM) writes response data and the values of temporary variables and interview properties to the files in the Value Cache as soon as a question is answered. Each “write” to the cached data file is called a save point, and it contains values for all questions, temporary variables, and interview properties that have been set up to the point at which the respondent or interviewer clicked Next after answering the current question. Any variables that are set between this question and the next question are saved with the answer to the next question as part of the next save point.
If the project has its AutoUpdateDataModel property set to 2, the interviewer session engine also writes response data to the project’s case data as soon as each question is answered. This places a heavier load on the database service, especially when there are many interviews running simultaneously on a number of projects. To avoid this set the AutoUpdateDataModel property to 1 (the default), or by switching off the continuous updating of a project’s case data and relying on the Transfer Service to copy data from the value cache into the case data database instead. However, suspending the automatic write to the database means that there will be no data available for active interviews in topline tables because the Transfer Service deals with data for only completed interviews.
Do not disable the automatic write feature for projects that use sample management project affinity. Restarts from sample management, where the respondent is re-authenticated, rely on the case data being written immediately, and project affinity is ignored when the Transfer Service is used. Restarted interviews are replayed to the last question based on the record in the SQL database. When the automatic write feature is disables, it is possible for the respondent to restart the interview before their data has been transferred to the database.
See
Restarts and rollbacks
Transfer Service
Using the Value Cache and the Transfer Service
See also
Interview Service tier