![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Ingres 2.6 on SunOS There is a SELECT statement of type SELECT.... UNION ALL SELECT.... UNION ALL SELECT.... UNION ALL SELECT... Each subselect references several tables.The list is the same for each subselect. The qep is correct. The execution of each subselect begins from a secondary index on table U. Now add 'create table tmp_000 as..' at the beginning of this statement and the qep changes to bad: no use of the index, the execution starts from Proj-rest node on table U. |
|
I suspect we reach some internal limit of the number of tables referenced in qep. Is there any other explanation ?. |
|
Note that the qep remains ok if we add 'create table as ..', but reduce the number of subselects to 3. |
#3
| |||||
| |||||
|
|
Ingres 2.6 on SunOS There is a SELECT statement of type SELECT.... UNION ALL SELECT.... UNION ALL SELECT.... UNION ALL SELECT... Each subselect references several tables.The list is the same for each subselect. The qep is correct. The execution of each subselect begins from a secondary index on table U. Now add 'create table tmp_000 as..' at the beginning of this statement and the qep changes to bad: no use of the index, the execution starts from Proj-rest node on table U. |
|
I suspect we reach some internal limit of the number of tables referenced |
|
qep. Is there any other explanation ?. |
|
Note that the qep remains ok if we add 'create table as ..', but reduce |
|
number of subselects to 3. |
#4
| |||
| |||
|
|
Ingres 2.6 on SunOS There is a SELECT statement of type SELECT.... UNION ALL SELECT.... UNION ALL SELECT.... UNION ALL SELECT... Each subselect references several tables.The list is the same for each subselect. The qep is correct. The execution of each subselect begins from a secondary index on table U. Now add 'create table tmp_000 as..' at the beginning of this statement and the qep changes to bad: no use of the index, the execution starts from Proj-rest node on table U. |
|
I suspect we reach some internal limit of the number of tables referenced in qep. Is there any other explanation ?. |
|
Note that the qep remains ok if we add 'create table as ..', but reduce the number of subselects to 3. |
#5
| |||
| |||
|
|
Adding set joinop notimeout at the beginning d oesn'thelp. |
|
I need the qep with the use of secondary index as it greatly reduces execution time. |
|
What is going on here ? Why adding 'create table as...' at the beginning changes the qep to bad ? |
#6
| |||||
| |||||
|
|
Ingres 2.6 on SunOS There is a SELECT statement of type SELECT.... UNION ALL SELECT.... UNION ALL SELECT.... UNION ALL SELECT... Each subselect references several tables.The list is the same for each subselect. The qep is correct. The execution of each subselect begins from a secondary index on table U. Now add 'create table tmp_000 as..' at the beginning of this statement and the qep changes to bad: no use of the index, the execution starts from Proj-rest node on table U. |
|
I suspect we reach some internal limit of the number of tables referenced |
|
qep. Is there any other explanation ?. |
|
Note that the qep remains ok if we add 'create table as ..', but reduce |
|
number of subselects to 3. |
#7
| |||||
| |||||
|
|
Ingres 2.6 on SunOS There is a SELECT statement of type SELECT.... UNION ALL SELECT.... UNION ALL SELECT.... UNION ALL SELECT... Each subselect references several tables.The list is the same for each subselect. The qep is correct. The execution of each subselect begins from a secondary index on table U. Now add 'create table tmp_000 as..' at the beginning of this statement and the qep changes to bad: no use of the index, the execution starts from Proj-rest node on table U. |
|
I suspect we reach some internal limit of the number of tables referenced |
|
qep. Is there any other explanation ?. |
|
Note that the qep remains ok if we add 'create table as ..', but reduce |
|
number of subselects to 3. |
#8
| |||||
| |||||
|
|
Ingres 2.6 on SunOS There is a SELECT statement of type SELECT.... UNION ALL SELECT.... UNION ALL SELECT.... UNION ALL SELECT... Each subselect references several tables.The list is the same for each subselect. The qep is correct. The execution of each subselect begins from a secondary index on table U. Now add 'create table tmp_000 as..' at the beginning of this statement and the qep changes to bad: no use of the index, the execution starts from Proj-rest node on table U. |
|
I suspect we reach some internal limit of the number of tables referenced |
|
qep. Is there any other explanation ?. |
|
Note that the qep remains ok if we add 'create table as ..', but reduce |
|
number of subselects to 3. |
![]() |
| Thread Tools | |
| Display Modes | |
| |