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 -> Oracle Text Query Optimization

Oracle Text Query Optimization

From: Jeremy <newspostings_at_hazelweb.co.uk>
Date: Wed, 4 May 2005 17:42:57 +0100
Message-ID: <MPG.1ce30be928ff5af2989e5f@news.individual.net>


Platform: oracle 9iR2 / Solaris 9

This probably a very simple answer. We have a table with text indexed documents.

The following query will retrieve circa 16,000 rows.

SELECT score(1) score,

        wcc.candidate_id
FROM wd_cand_cvs wcc
WHERE contains(cv_text,'sales, sap, hrms, oracle, peoplesoft',1) > 0 ORDER BY 1 DESC; We only want the first 15 (by first I mean the first when ordered by the score).

Without the ORDER BY the first results arrive in less than a second. With the order by, the results take circa 40 seconds (obviously as it has to sort the data before displaying the irst result set).

Is there a quick and easy way to speed this up?

-- 

jeremy
Received on Wed May 04 2005 - 11:42:57 CDT

Original text of this message

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