User 2f347cbe91
02-09-2008 12:29:20
Hi,
I am making a search in a table with ~3000 entries with this query:
SELECT /*+ CHOOSE */ SGC.COMPOUND.MOLFILE
FROM JCHEM.MOLTABLE, SGC.COMPOUND
WHERE ((jcf_containsb(JCHEM.MOLTABLE.CD_STRUCTURE,
(select bmolfile from SGC.tempmolfile where pkey = 27365958)) = 1))
AND JCHEM.MOLTABLE.SGCID=SGC.COMPOUND.SGCID
It goes on and on without giving any result.
I have for example this indexes:
CREATE INDEX JCHEM.MOLTABLE_IDX ON JCHEM.MOLTABLE (CD_STRUCTURE)
INDEXTYPE IS JCHEM.JC_IDXTYPE
NOPARALLEL;
CREATE INDEX JCHEM.MOLTABLE_IX ON JCHEM.MOLTABLE(SGCID)
CREATE UNIQUE INDEX SGC.COMPOUND_SGCID_UNIQUE ON SGC.COMPOUND (SGCID)
Is there anything else I can do to fasten up the search?
Thanks
I am making a search in a table with ~3000 entries with this query:
SELECT /*+ CHOOSE */ SGC.COMPOUND.MOLFILE
FROM JCHEM.MOLTABLE, SGC.COMPOUND
WHERE ((jcf_containsb(JCHEM.MOLTABLE.CD_STRUCTURE,
(select bmolfile from SGC.tempmolfile where pkey = 27365958)) = 1))
AND JCHEM.MOLTABLE.SGCID=SGC.COMPOUND.SGCID
It goes on and on without giving any result.
I have for example this indexes:
CREATE INDEX JCHEM.MOLTABLE_IDX ON JCHEM.MOLTABLE (CD_STRUCTURE)
INDEXTYPE IS JCHEM.JC_IDXTYPE
NOPARALLEL;
CREATE INDEX JCHEM.MOLTABLE_IX ON JCHEM.MOLTABLE(SGCID)
CREATE UNIQUE INDEX SGC.COMPOUND_SGCID_UNIQUE ON SGC.COMPOUND (SGCID)
Is there anything else I can do to fasten up the search?
Thanks