Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Temporary tables in memory
joel-garry_at_home.com (Joel Garry) wrote in message news:<91884734.0309021519.1dec21ff_at_posting.google.com>...
Based on this example, I am not even sure that there is any real point to bothering with temporary tables even in Sybase. If you need a small amount of data to be resident in memory, all you should really need do is to "pin" those tables into memory. I really don't get why one would have to use a special table type for this.
In both Oracle & DB/2 there are auxillary block/page cache pools that you could pin a small lookup table into to ensure that table scans are done against physical memory.
Based on this example, it sounds like you need to define a KEEP pool for the instance running this app, get rid of the temp table references generated by your code generator (sed, awk, perl), and set all of your little lookup tables to be in the KEEP pool.
> >
> > in PL/SQL and pushes the name CurrencyRS (a global temporary table) on
> > to a stack. The application then reads the table names off the stack
> > one by one and does a table scan on each table - cleaning out the
> > tables as it goes.
> >
> > Conceptually, this makes it easy to translate the Sybase code to
> > Oracle code and have one application handle both back ends (well you
> > have a different low level Oracle library, but the rest is the same).
> > The downside is it slows performance down by probably a factor of 20
> > (or maybe only 10 if logs weren't written for global temporary tables
> > - which, unfortunately does not appear to be the case).
Received on Mon Sep 08 2003 - 16:35:56 CDT