Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: PL/SQL statement for QUICKLY getting the "next available value"

Re: PL/SQL statement for QUICKLY getting the "next available value"

From: Peter Larsen <plarsen_at_dilbert.famlarsen.org>
Date: 2000/07/18
Message-ID: <YT_c5.85$471.2678@skycache.prestige.net>#1/1

Jonas Malmsten <jonas_at_malmsten.net> wrote:

> I haven't tried this particular construction myself but it seems
> logical to me that this would be pretty quick.
 

> create index idx_pvi_uuid on pvi_uuid(used_flag, pvi);

You might want to look into binary indexes. They're made for this stuff. A standard index will not work very well, as scanning through an index is "expensive" in time and system resources.

-- 
 P. Larsen
Received on Tue Jul 18 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US