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

Improving tables performance


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

New User


Joined: 18 Jul 2007
Posts: 21
Location: kolkata

PostPosted: Wed Nov 28, 2007 2:53 am
Reply with quote

I have a query...
In our production system there are some load tables which gets populated on daily bases with thousands of rows. these tables doesn't have indexes defined on them. Because cost of creating indexes can be more than reading the tables. These tables are read only once.

Can we improve the performance of these tables while reading?

Thanks in advance
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Nov 28, 2007 3:07 am
Reply with quote

Hello,

You have not posted enough information for us to make suggestions.

Quote:
Because cost of creating indexes can be more than reading the tables
Possibly. . .

Quote:
These tables are read only once.
Are the tables read sequentially 1 time? If there was some kind of "key" might the records be read as needed instead of reading the entire table?

If you describe the processing done with these tables, we may be able to offer some suggestions.
Back to top
View user's profile Send private message
Munish Singla

New User


Joined: 18 Jul 2007
Posts: 21
Location: kolkata

PostPosted: Wed Nov 28, 2007 3:29 am
Reply with quote

These tables are read only once. But because of large data reading is slow.

No indexes, no keys are defines on these tables. These tables are just replica of flat files and read on the basis on file-id

Let me know if this info helps
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Nov 28, 2007 3:38 am
Reply with quote

Hello,

If the tables are to be read only once sequentially and they are merely replicas of existing sequential files, why take the time to load the data into database tables and then read it again only once (sequentially)?

Seems like it would be much less overhead to simply read the data in the qsam file(s).
Back to top
View user's profile Send private message
Munish Singla

New User


Joined: 18 Jul 2007
Posts: 21
Location: kolkata

PostPosted: Wed Nov 28, 2007 4:24 am
Reply with quote

I don't know . This is running in production from last 4 years in the same way and I am new to this project.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Nov 28, 2007 7:22 am
Reply with quote

Hello,

I'd suggest spending some time researching how the process came to be implemented this way.

You might be able to find someone who was part of the imiplementation or who later worked on it and knows some of the history of how this came to be.

It might be interesting to run a test of the same process using the sequential files and cokmparing the time needed and the output files/reports.
Back to top
View user's profile Send private message
Munish Singla

New User


Joined: 18 Jul 2007
Posts: 21
Location: kolkata

PostPosted: Thu Nov 29, 2007 6:23 am
Reply with quote

Actually data is validated from flat files and put in to the load tables.

So load tables are basically used for validation process.

So is there any way out to improve the performance.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Nov 29, 2007 7:50 am
Reply with quote

Hello,

Quote:
So load tables are basically used for validation process.
If you post the code that works with the tables, we may have suggestions.
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 exploiting Z16 performance PL/I & Assembler 2
No new posts Need to fetch data from so many DB2 t... DB2 9
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts How to: PK does not exist in several ... DB2 6
No new posts Discrepancy b/w SYSIBM tables and BMC... DB2 0
Search our Forums:

Back to Top