Hi All,
While analyzing cobol-db2 program of high execution time(5hrs+), found out that same cursor has been opened for 29 times.
We are just changing the policy type each time.
Cursor has simple select query from three tables.
There are total 2.8 Million rows, If we don't put "Where" clause in select query.
I believe opening cursor multiple times is affecting performance.
I am planning to extract via INZUTILB utility and format using COBOL program. For extraction, it just took 4 mins of execution time. I kept all the 29 values in IN predicate of select query.
Before I start formatting the data, I would like to hear from experts is there any other way to reduce execution time?
Thanks in advance.
Opening DB2 cursor multiple times will affect performance ?
-
- Posts: 93
- Joined: Sat Oct 23, 2010 1:28 pm
- Skillset: JCL , COBOL, VSAM , CICS
- Referer: Through Google Search
- Location: Chennai, India
- Contact:
-
- Similar Topics
- Replies
- Views
- Last post
-
- 11
- 3762
-
by Pedro
View the latest post
Tue Dec 27, 2022 11:24 am
-
-
Commit issued without hold and without close cursor statemen
by ravi11081992 » Sat Jan 22, 2022 2:42 pm » in DB2 - 2
- 2259
-
by engh
View the latest post
Tue Sep 20, 2022 6:07 pm
-
-
- 9
- 3439
-
by samb01
View the latest post
Thu Oct 14, 2021 1:29 pm
-
- 11
- 3992
-
by Pedro
View the latest post
Tue Apr 27, 2021 10:06 am
-
-
Extract first record from multiple files
by Prasanna G » Wed Jan 13, 2021 2:14 pm » in DFSORT/ICETOOL/ICEGENER - 5
- 1774
-
by Prasanna G
View the latest post
Wed Jan 13, 2021 11:16 pm
-