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

Home -> Community -> Usenet -> c.d.o.server -> Re: Binary or Hash search in plsql table

Re: Binary or Hash search in plsql table

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 10 Apr 2002 12:03:11 +0100
Message-ID: <1018436537.23677.0.nnrp-14.9e984b29@news.demon.co.uk>

Would it make sense to use an object-type table instead of a pl/sql type table.

Then you could cast the 100 rows into a
relational table and use it in the FROM clause of your cursor query with a join to the
rest of the query.

--
Jonathan Lewis
http://www.jlcomp.demon.co.uk

Host to The Co-Operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

Author of:
Practical Oracle 8i: Building Efficient Databases


Sunil wrote in message ...

>I have a plsql table ( table of number index by binary integer) which has
>some values ( ~ 100 ).
>Now I need to search through this plsql table for all of 10,000 rows from a
>database table (selected in a cursor).
>Right now there is a linear search in place and I am looking at making it
>faster.
>Because I am operating on a long column from the database table (for
>comparison) I cannot use bulk/sql operations.
>
>Can any of the experts out there suggest a better way than the linear
>search. Or any built in function in pl/sql which will make my lookup faster
>?
>
>
>I am running on Oracle 9i.
>
>
>--
>Sunil.
>
>
>
Received on Wed Apr 10 2002 - 06:03:11 CDT

Original text of this message

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