IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DB2 parallelism


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jzhardy

Active User


Joined: 31 Oct 2006
Posts: 131
Location: brisbane

PostPosted: Sun Jun 21, 2020 5:26 am
Reply with quote

I have a set of queries Q1 .. QN which are result set compatible.

eg Q1 might be:
Code:
select id -- id is dec 9
from some_table where id in (1,2,3);


Q2 might be:

Code:
Select id -- id is dec 9
from another_table where id in (5,6,7);


If I string these together as:
Q1 union all Q2 union all ... Qn

does DB2 guarantee internal parallelism ?

Assume that I have set current degree = 'ANY'

what other considerations are there ? traps for the unwary etc.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Mon Jun 22, 2020 11:00 am
Reply with quote

Many factors affects that and DBA can be the best person to tell about it on your query since the setting vary per site.

Start from here and then reach out to DBAs

www.ibm.com/support/knowledgecenter/SSEPEK_11.0.0/perf/src/tpc/db2z_whenparallelnotused.html
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts DSNUTILB - parallelism DB2 3
Search our Forums:

Back to Top