Oracle Objects for OLE C++ Class Library
Release 9.2

Part Number A95896-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback

SetCacheOptimalSize Method

Applies To

ODatabase

Description

Sets the optimal size for the client-side object cache in bytes. The default value is 200K bytes.

Usage

void SetCacheOptimalSize(long size) throw(OException)

Arguments

size
An integer specifiying the optimal size.
Remarks

This parameter increases the client side object cache size. If the memory occupied by the objects currently in the cache exceeds the high water mark (maximum object cache size), then the cache automatically begins to free unmarked objects which have a pin count of zero. The cache continues freeing such objects until memory usage in the cache reaches the optimal size, or until it runs out of objects eligible for freeing. This parameter should be set to appropriate value so that object cache can accomadate all the fetched object instance from Oracle server. This is property is usefull for performance tuning for accessing Oracle object instance.


 
Oracle
Copyright © 1998, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback