If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Use of access module or not

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-21-06, 08:05
fab01 fab01 is offline
Registered User
 
Join Date: Mar 2006
Posts: 17
Question Use of access module or not

Hi everybody.
I work for a little insurance company in France.
My company is actually installing db2 on zos (mainframe) and cobol. As we don't have no DBA, i would have some answers about a question:
- What would be the advantages or disadvantages about
1/ Writting an unique access module for each table (this module would have lots of fonctions)
For example if the Table has three rows, when i do my select, it would have 6 fonctions because there are 6 possibilities about the where clause and may be 12 possibilities if we add the order by / group by clause
2/ Coding all sql order in the program

If theres is a DBA or poeple who knows DB very well here, any advice would be great.
Cheers
Reply With Quote
  #2 (permalink)  
Old 04-19-06, 05:53
hurmavi hurmavi is offline
Registered User
 
Join Date: Jan 2004
Location: Europe, Finland, Helsinki
Posts: 60
Hi!

In our company we have used since 1992 the first option (before that, we used option 2). But now it seems to be, that it was a misstake, because if you use access modules...
a) you can't use SQL JOINS - leading to performance problems
b) you will read too many columns. Each and every column adds your CPU-cost.
c) SQL is an interface to the database. Why should you build an interface over an interface?

Yours, Bill
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On