User 715e498bfb
10-04-2009 07:03:45
When we are writing SQL statement for multi-terms query, if including chemical structure in the search terms, we found that the speed would be much slower than the situation without chemical structure in the search terms. Please refer to the following codes:
select acd1_structure.cd_id from ACD2D_MOLTABLE, ACD1_STRUCTURE where ACD2D_MOLTABLE.MDLNUMBER=ACD1_STRUCTURE.MDLNUMBER and ACD2D_MOLTABLE.RULE5 >= 1 AND ACD1_STRUCTURE.CD_MOLWEIGHT >= 3000 AND jc_contains(cd_smiles, 'C1=CC=CC=C1') = 1
We have discussed this issue with Ferenc in details and changed the statements.