Unix Technical Forum

Wider columns or Deeper Rows?

This is a discussion on Wider columns or Deeper Rows? within the DB2 forums, part of the Database Server Software category; --> My data modeler asked me an interesting question... What is better as far as efficiency is considered: Tables having ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:11 AM
shsandeep
 
Posts: n/a
Default Wider columns or Deeper Rows?

My data modeler asked me an interesting question...
What is better as far as efficiency is considered:
Tables having wider columns or deeper rows?

I answered: 'It depends' on the total size of the data to be fetched (row
width * number of rows).

But then I thought that wider columns would be better since DB2 would try
to fit the entire row onto a single page and thus less reads. (obviously
it should be within the page limit).

Just my thoughts, could be totally wrong.
Let me know your views.

Cheers,
San.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:11 AM
jack2004fb@126.com
 
Posts: n/a
Default Re: Wider columns or Deeper Rows?

You can try this EnergyKey
http://www30.webSamba.com/SmartStudio
This may be help you.
Now I always use EnergyKey, it helps me so much in my work.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 07:12 AM
Mehmet Baserdem
 
Posts: n/a
Default Re: Wider columns or Deeper Rows?

I guess it also depends on the way you analyze and index these wider
columns. If you need to split them every time you query the table, I
think it is unacceptable.

Regards,

Mehmet Baserdem

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 07:12 AM
peteh
 
Posts: n/a
Default Re: Wider columns or Deeper Rows?


shsandeep wrote:
> My data modeler asked me an interesting question...
> What is better as far as efficiency is considered:
> Tables having wider columns or deeper rows?
>

At the risk of sounding flippant, if your data modeler is asking this
question you need a new data modeler...

Pete H

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:21 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com