Download IMDB Cache User's Guide

Transcript
Setting a passthrough level
Figure 5–6 PassThrough=5
Application
Application
Update Table A
Select from Table B
PassThrough = 5
Select from Table B
Update Table A
A
A
B
B
C
D
Updatable
cache group
C
D
Dynamic AWT global
cache group
TimesTen database
TimesTen database
Oracle database
Oracle database
B
A
F
E
B
A
G
F
E
G
C
C
D
Statements are executed
in the TimesTen database.
D
SELECT statements that do not satisfy the
criteria of a dynamic load query are
passed through to the Oracle database
when all committed updates on cache
tables in dynamic AWT global cache
groups by previous transactions within
the connection have been propagated to
Oracle.
Considerations for using passthrough
Passing through update operations to the Oracle database for execution is not
recommended when issued on cache tables in an AWT or SWT cache group.
Committed updates on cache tables in an AWT cache group are automatically
propagated to the cached Oracle Database tables in asynchronous fashion. However,
passing through an update operation to the Oracle database for execution within the
same transaction as the update on the cache table in the AWT cache group renders the
propagate of the cache table update synchronous, which may have undesired results.
Committed updates on cache tables in an SWT cache group can result in
self-deadlocks if, within the same transaction, updates on the same tables are passed
through to the Oracle database for execution.
A PL/SQL block cannot be passed through to the Oracle database for execution. Also,
you cannot pass through to Oracle Database for execution a reference to a stored
procedure or function that is defined in the Oracle database but not in the TimesTen
database.
For more information about how the PassThrough connection attribute setting
determines which statements are executed in the TimesTen database and which are
passed through to the Oracle database for execution and under what circumstances,
see "PassThrough" in Oracle TimesTen In-Memory Database Reference.
Cache Group Operations 5-25