Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Which is better?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Biswajit Nanda

New User


Joined: 28 Mar 2011
Posts: 9
Location: India

PostPosted: Tue May 17, 2011 12:09 pm    Post subject: Which is better?
Reply with quote

Using of 1 large table or using of small multiple tables?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Tue May 17, 2011 12:28 pm    Post subject: Reply to: Which is better?
Reply with quote

the question as posed does not make any sense, and cannot be answered

better... from which point of view ?

optimization of any kind has many faces
when You optimize for something
You will gain there, but lose somewhere else
and so on and so on
Back to top
View user's profile Send private message
Biswajit Nanda

New User


Joined: 28 Mar 2011
Posts: 9
Location: India

PostPosted: Tue May 17, 2011 12:31 pm    Post subject: better in the sence..
Reply with quote

does the use of smaller table make it less complex in search, does it save time?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Tue May 17, 2011 12:38 pm    Post subject: Reply to: Which is better?
Reply with quote

access time depends on too many factors ,
the size of the table is just one of them!

first come the complexity of the query and proper indexing

and what kind of size would You be worried about
hundreds thousands millions of rows
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Tue May 17, 2011 8:34 pm    Post subject:
Reply with quote

Hello,

Quote:
does the use of smaller table make it less complex in search, does it save time?
Probaly not. . . Actually, i would think that using 10 tables instead of one would make the process more complex. . .

SELECTing 20 rows from a properly indexed table of 1000 rows should not require much (if any) more resoures that selecting properly indexed 20 rows from a 100 million row table. Unfortunately, there are many, many poorly designed tables and poorly constructed queries that run quite nicely on a 1000 row test table, but when the full production volume is used they grind to a halt. . .

It sounds like you are asking for a generic, "works in every case" answer and there is not one.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:



Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us