Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / May 2006

Tip: Looking for answers? Try searching our database.

Wider columns or Deeper Rows?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shsandeep - 30 May 2006 09:30 GMT
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.
jack2004fb@126.com - 30 May 2006 11:17 GMT
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.
Mehmet Baserdem - 31 May 2006 16:55 GMT
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
peteh - 31 May 2006 17:38 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.