I have tables with around 100 million rows and I have performance problems with ETL. I need to get these queries to run faster than they do now, here is example of one of the queries and the other ones are similar.
Code
SELECT *
FROM table1
WHERE EXISTS (
SELECT 1
FROM table2, table3
WHERE
table2.key=table1.key
AND table2.val IS NOT NULL
AND table3.key=table1.key2
AND table3.val IS NOT NULL
AND table3.timestamp >= TO_DATE('2012-10-01','YYYY-MM-DD')
)
Any suggestions to make this query faster?