Question
SQL performance - multiple tables or one bigger one?
One product will have 5 different types of media that need to
be
associated with it.
Some products will have, perhaps many items in one column while none in
other columns
For Example
Product ID | ###
images | photoID1, PhotoID2
multimedia |
testimonials |
Pdfs | pdfid1
INserts | insertid1, insertid2 insertid3
Anyways, I am wondering if creating one table with multiple columns is
better than many tables with just one of each of these categories?
In other words, would it be better to have a table for multi-media, a
table for pdfs and so on or one table for all of them. Some rows will be
empty.
does the server take a bigger hit accessing multiple tables win
individual items or one table with more columns that are, perhaps empty?
associated with it.
Some products will have, perhaps many items in one column while none in
other columns
For Example
Product ID | ###
images | photoID1, PhotoID2
multimedia |
testimonials |
Pdfs | pdfid1
INserts | insertid1, insertid2 insertid3
Anyways, I am wondering if creating one table with multiple columns is
better than many tables with just one of each of these categories?
In other words, would it be better to have a table for multi-media, a
table for pdfs and so on or one table for all of them. Some rows will be
empty.
does the server take a bigger hit accessing multiple tables win
individual items or one table with more columns that are, perhaps empty?
