increasing performance of db2 query

Ask question on - DataBase Concepts, IBM Mainframe DB2, DB2/UDB, DB2 Tools, SQL , DB2 programming with languages like COBOL, PL1.

Moderators: Kalicharan, Moderator Group

Post Reply
shilpa_query
Member
Posts: 1
Joined: Sat Feb 13, 2010 1:23 pm

increasing performance of db2 query

Post by shilpa_query » Sat Feb 13, 2010 1:58 pm

I have a query which involves 15 joins.It takes around 1 min 29 secs to run for a date range of 3 months.I need to bring down the time to as close as 2 secs.I m posting the query as below.Please suggest on how to increase the performance ,its urgent.....

Indexes have been defined on the tables,but its undergoing a tablespace scan on 3 tables.

Please advise...

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Sat Feb 13, 2010 3:43 pm

First, where the query is?
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others