hi all,
I wrote a view which has two table joins.
Now I'm just wondering how I could increase
the performance. I already have the a.tc and b.c indexed.
In addition the views are retriving 60% of the records.
So I'm not sure if in fact putting indexes will
increase the performance. Also I would like to
know what kind of view will be good in this regard.
B-tree or Bitmap?
The view looks something like this:
SELECT
A.SN AS S0,
'NA' AS S1,
A.ID,
A.SSID AS SS0,
A.DESCR AS DESCR1,
B.DESCR AS ALT_DESCR1,
'NA' AS DESCR2,
'NA' AS INSERT_SYMB,
'NA' AS AB
FROM
schema1.table_A A,
schema2.table_B B,
WHERE
A.ESC IN (10,20,30)
AND A.CI = 1
AND A.TC = B.C
AND A.TC IN
('ABC','BDE',DER',DRQ','OIUO','DQOP','QUIE','PIIU','EU28','DLWI')
thank you in advance!
I wrote a view which has two table joins.
Now I'm just wondering how I could increase
the performance. I already have the a.tc and b.c indexed.
In addition the views are retriving 60% of the records.
So I'm not sure if in fact putting indexes will
increase the performance. Also I would like to
know what kind of view will be good in this regard.
B-tree or Bitmap?
The view looks something like this:
SELECT
A.SN AS S0,
'NA' AS S1,
A.ID,
A.SSID AS SS0,
A.DESCR AS DESCR1,
B.DESCR AS ALT_DESCR1,
'NA' AS DESCR2,
'NA' AS INSERT_SYMB,
'NA' AS AB
FROM
schema1.table_A A,
schema2.table_B B,
WHERE
A.ESC IN (10,20,30)
AND A.CI = 1
AND A.TC = B.C
AND A.TC IN
('ABC','BDE',DER',DRQ','OIUO','DQOP','QUIE','PIIU','EU28','DLWI')
thank you in advance!