Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> statement caching in oracle
Hi
In my java program i repetedly call certain queries. I would like to take advantage of a statement cache, so that these queries would not have to be parsed by the database every time and thus improve the performance.
I am using the latest JDBC thin driver (8.1.7), which provides API for setting the size of the clients statemet cache. This works fine with a physical instance of a PooledConnection. However if am trying to use it in combination with OracleConnectionCacheImpl class I will only get access to logical connections which don't let you set their statement cache. I tried calling
setStmtCacheSize()
How can I set the statement cache for all connection created by the OracleConnectionCacheImpl class?
Insted of setting this from the java program I could surly set the connection cache somehow for the whole database. How do I do that? This could be a workaround if the oracle's java API doesn't let me do it.
any responses would be appreciated.
thanks,
Miso
Sent via Deja.com
http://www.deja.com/
Received on Thu Jan 11 2001 - 17:28:46 CST
![]() |
![]() |