How to select 1 record from 1M records fast ?

From: Jia Lu <roka100_at_gmail.com>
Date: Thu, 15 Apr 2010 03:25:13 -0700 (PDT)
Message-ID: <30700f32-3d26-43d7-a3c4-273eecc3a08d_at_b23g2000yqn.googlegroups.com>



Hi all

DB:Oracle 11g R2 Standard One x64 on Linux

 I created a table with 1,000,000 records. Then I select a,b from tbl where xx=xx.
(With the real case we need do some joins)

Question is how can I select one row fast.
(maybe in 3 seconds)

With the standard edition we cannot use partition  tables.
Maybe we can tune it with creating indices.

I need some advice on the case.
Thanks a lot.

Best

Lau Lu Received on Thu Apr 15 2010 - 05:25:13 CDT

Original text of this message