Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 09:38 AM
Joerg Ammann
Guest
 
Posts: n/a
Default Federated Database: performance problem with outer-joins

hi,

os: aix 4.3.3
DB2: version 7 FP3

we are using a federated DB setup, datasource and fed-Db are both
V7FP3 (in fact they are on the same server) and are having massiv
performance problems.

i tracked it back to the way the queries are push-downed to the
datasource.

(simplified) example, dynexpln-output:
-----------------------------------------------------------------------------
SQL Statement:

select count(*)
from aix.tkonto o left outer join aix.tkunde u on
u.kunden_nummer=o.kunden_nummer


Estimated Cost = 3850
Estimated Cardinality = 1

Distributed Subquery #2
| #Columns = 1
Left Outer Merge Join
| Distributed Subquery #1
| | #Columns = 1
Aggregation
| Column Function(s)
Return Data to Application
| #Columns = 1

Distributed Subquery #1:
Server: ODSDB (DB2/6000 7.2)
Subquery SQL Statement:

SELECT A0."KUNDEN_NUMMER"
FROM "AIX"."TKUNDE" A0
ORDER BY 1 ASC

Nicknames Referenced:
AIX.TKUNDE ID = 121 Base = AIX.TKUNDE
#Output Columns = 1

Distributed Subquery #2:
Server: ODSDB (DB2/6000 7.2)
Subquery SQL Statement:

SELECT A0."KUNDEN_NUMMER"
FROM "AIX"."TKONTO" A0
ORDER BY 1 ASC

Nicknames Referenced:
AIX.TKONTO ID = 117 Base = AIX.TKONTO
#Output Columns = 1
-----------------------------------------------------------------------------
both tables are on the remote DB, instead of pushing down the whole
query, DB2 translates it to two subqueries. both tables are quite
large and therefore a massive overhead is introduced.
(the similar query as INNER JOIN ist completly pushdowned)

are there any tuning-parameters (i know about Serveroptions PUSHDOWN
'Y' etc. tried them to no avail) ?
is this a know restriction ?

greetings . . . joerg
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.