473,666 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Plan - Operator question

Hi:

First, thank you for looking into this posting...
Running UDB V8 FP11.

The question is around the below query branch. I would like to know
what it means and if there are ways to avoid it.

What does the operations above HSJOIN do?
HSJOIN --> SORT --> TBSCAN

Thanks!

Vijay

-------------\
12480.9
NLJOIN
( 5)
26445.8
3144.57
/------+------\
116206 0.107404
TBSCAN FETCH
( 6) ( 17)
12101.8 25.1948
2040.15 2.36492
| /---+---\
116206 0.364922 1.71589e+07
SORT IXSCAN TABLE: STELLA
( 7) ( 18) DIMCLIENTDATE
11769.9 21.3097
2040.15 2
| |
116206 1.71589e+07
HSJOIN INDEX: STELLA
( 8) DIMCLIENTDATE_6
11426.3
2040.15

Jun 8 '06 #1
2 2366
Ian
UDBDBA wrote:

The question is around the below query branch. I would like to know
what it means and if there are ways to avoid it.

What does the operations above HSJOIN do?
HSJOIN --> SORT --> TBSCAN

These operations are feeding the outer leg of a nested loop join.
While it's certainly not a requirement for the outer leg of an NL join
to be sorted, DB2 may elect to perform the sort to make the join more
efficient, or because the output from the NLJOIN will already be sorted
(thus avoiding a bigger sort later in the execution plan).

Jun 15 '06 #2
Thanks Ian.

Ian wrote:
UDBDBA wrote:

The question is around the below query branch. I would like to know
what it means and if there are ways to avoid it.

What does the operations above HSJOIN do?
HSJOIN --> SORT --> TBSCAN

These operations are feeding the outer leg of a nested loop join.
While it's certainly not a requirement for the outer leg of an NL join
to be sorted, DB2 may elect to perform the sort to make the join more
efficient, or because the output from the NLJOIN will already be sorted
(thus avoiding a bigger sort later in the execution plan).


Jun 22 '06 #3

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

Similar topics

1
1973
by: Alexey Aksyonenko | last post by:
I know that SQL Servers can be set up to forward alerts to a single SQL Server. I am wondering if same would be true for the Maintenance Plan Reports. Basically, I want to have only one SQL Server on the network that has the SQL Agent Mail profile set up, and to use that server for all e-mail and/or pager notifications for all alerts and events raised by any of the SQL Servers on the network, including Maintenance Plan reports. Is this...
2
2181
by: T Chaudhary | last post by:
Hi, I have a question about estimated query execution plans that are generated in QA of MSSQL. If I point at an icon/physical operator in the estimated QEP, it shows me some statistics about the operator. Is there a way to retrieve these statistics through a query, i.e., can these statistics be available to the user?
14
5406
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB 7.2 environment, the choices the optimizer makes often seem flaky. But this last example really floored me. I was hoping someone could explain why I get worse response time when the optimizer uses two indexes, than when it uses one. Some context:
2
1880
by: Fan Ruo Xin | last post by:
Can someone help me to confirm - From the access plan tree of a query, if one table is referred (TABLE SCAN) three times. Does that mean this table was scanned (either from disk or bufferpool) three times during runtime? TIA FRX
22
3299
by: Marc Mones | last post by:
Hello, I'working with IBM DB2 V8.1 and CLI/ODBC. I've got a problem with the following statement: ******************************************************************************** SELECT S_ART, S_SPRACHE, S_MANDANT, S_NR, S_SUB, S_OWNER, S_SATZ FROM SY0001_00005 WHERE S_ART = ? AND S_SPRACHE = ? AND S_MANDANT = ? AND S_NR = ? AND
6
3733
by: UDBDBA | last post by:
All: We are running UDB V8.2 FP8. We have sql query which uses DGTT. The access plan for the query changes based on rows selected into DGTT. 1. Secnario I: DGTT has atlest 1 row. I see INDEX ORing (IDXSCAN, SORT and RIDSCAN) when DGTT has atlest 1 row. 2. Scenario II: DGTT is empty.
6
4739
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
2
2214
by: P Adhia | last post by:
Hi, When I explain the following SQL, the optimizer conjures up two columns $C0 and $C1. It appears that they might refer to min and max values for the range of values returned by the sub-select. Is that correct? From the access plan graph it appears that, SIEBEL.S_EVT_ACT is the first table to get accessed, before the sub-select is evaluated. If I interpreted the graph correctly, I don't see how optimizer can determine $C0 and $C1...
2
2045
by: HeMan_Speaks | last post by:
I m currently developing a java based application and want to know how can i make client access database located on the server?
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1775
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.