Jump to content

Archived

This topic is now archived and is closed to further replies.

Dawie

My last newbie databse design question

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.