Jump to content


Photo

My last newbie databse design question


  • Please log in to reply
2 replies to this topic

#1 Dawie

Dawie
  • Members
  • Pip
  • Newbie
  • 8 posts
  • LocationCape Town, South Africa

Posted 08 October 2003 - 06:54 PM

Hopefully my last database/table design question.

Which of the following two designs is best in terms of speed of access:

table 1:
1000 rows and 50 fields (cols)

Or

table 2:
50 000 rows (1000 * 50) and 4 cols

Thanks once again

#2 DylanBlitz

DylanBlitz
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts
  • LocationOC Baby!

Posted 08 October 2003 - 07:17 PM

I would think that the first would be faster. Less rows to search through

#3 davewatts

davewatts
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 21 October 2003 - 01:19 PM

The first table with less rows is the best option. However, it is important to have indexes applied to the rows that you intend to join or search on.

It is possible to retrieve data from a table of 5,000,000 records that is index correctly faster than a table with 500,000 that isn\'t indexed correctly.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users