473,378 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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
Nov 12 '05 #1
0 1752

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: krystoffff | last post by:
I currently have PostgreSQL 7.1 installed on a server with about 700 Mb of RAM. I have many problems of speed with a database I created. For example, it took almost 12 sec to run the query...
1
by: Terry | last post by:
Problem: ========= Unknown column appearing in federated tables. Description: ============ Local database (L) is an established 'federated' database, extracting values from multiple remote...
4
by: uthuras | last post by:
Greetings all, Is it possible to have federated db feature implemented among DB2 family? I intend to create federated within DB2 databases. I have 2 databases TestA and TestB. I have some base...
5
by: Alias | last post by:
Hi Guys , I am trying to create a federated database link between 2 UDB 8.1 databases running on AIX on the same box but under different instances. When i tried this thru the control centre , I...
5
by: Klemens | last post by:
I get SQL30090 reason 18 by trying to do an insert in a federated table and an update in a local table in one transaction Do I have to change some settings to get done or ist this not possible by...
7
by: P. Adhia | last post by:
Sorry for quoting an old post and probably I am reading out of context so my concern is unfounded. But I would appreciate if I can get someone or Serge to confirm. Also unlike the question asked in...
4
by: Praveen_db2 | last post by:
Hi All DB2 8.1.3,Windows I have 2 databases in a single instance, say DB_1 and DB_2.I need to query a table from DB_1 in DB_2.I am try to use a nickname for it.But nickname creation is not...
10
by: shsandeep | last post by:
The ETL application loaded around 3000 rows in 14 seconds in a Development database while it took 2 hours to load in a UAT database. UAT db is partitioned. Dev db is not partitioned. the...
4
by: esmith2112 | last post by:
I have a query running on a federated database that takes the form select col1, col2 from nickname1 where <conditions exist> union all select col1,col2 from nickname2
1
by: TheAndroid | last post by:
All, I'm having a difficult time trying to implement two-phase commits across federated database members in UDB 8.3. I've tried using MQ (v 6.0) as the transaction manager and UDB tells me that...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.