The original sql takes 30 minutes. After Xiangtian adds this, the result will be available in 8s.
select /*+ use_hash(g a c) */
'1'
from tmp_g g ,tmp_a a ,tmp_c c
where g.id=a.id and a.id=c.id
;
The original sql takes 30 minutes. After Xiangtian adds this, the result will be available in 8s.
select /*+ use_hash(g a c) */
'1'
from tmp_g g ,tmp_a a ,tmp_c c
where g.id=a.id and a.id=c.id
;