![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi I was wondering which of the design approaches below would be better: Within the admin section of a website administrators can upload Resources for inclusion throughout the site. Now, these Resources can be either images, videos or documents e.g. PDF's, etc. Which of the following solutions would be best? 1. Creating a single table named Resources into which all resources would be inserted, then having some way of differentiating between the different types of resources e.g. a 'resource_type' column; or 2. Creating separate tables for each type of resource e.g. Images, Videos, Documents and inserting each resource into the appropriate table. Any help would be greatly appreciated. Thanks |
#3
| |||
| |||
|
|
Hi I was wondering which of the design approaches below would be better: Within the admin section of a website administrators can upload Resources for inclusion throughout the site. Now, these Resources can be either images, videos or documents e.g. PDF's, etc. Which of the following solutions would be best? 1. Creating a single table named Resources into which all resources would be inserted, then having some way of differentiating between the different types of resources e.g. a 'resource_type' column; or 2. Creating separate tables for each type of resource e.g. Images, Videos, Documents and inserting each resource into the appropriate table. Any help would be greatly appreciated. Thanks |
#4
| |||
| |||
|
|
Hi I was wondering which of the design approaches below would be better: Within the admin section of a website administrators can upload Resources for inclusion throughout the site. Now, these Resources can be either images, videos or documents e.g. PDF's, etc. Which of the following solutions would be best? 1. Creating a single table named Resources into which all resources would be inserted, then having some way of differentiating between the different types of resources e.g. a 'resource_type' column; or 2. Creating separate tables for each type of resource e.g. Images, Videos, Documents and inserting each resource into the appropriate table. Any help would be greatly appreciated. Thanks |
#5
| |||
| |||
|
|
On Aug 12, 3:46 am, Ian Oxley <ijox... (AT) googlemail (DOT) com> wrote: Within the admin section of a website administrators can upload Resources for inclusion throughout the site. Now, these Resources can be either images, videos or documents e.g. PDF's, etc. Which of the following solutions would be best? 1. Creating a single table named Resources into which all resources would be inserted, then having some way of differentiating between the different types of resources e.g. a 'resource_type' column; or 2. Creating separate tables for each type of resource e.g. Images, Videos, Documents and inserting each resource into the appropriate table. From the information you gave, there is no clear answer. |
|
Or are you just using the database as an expensive file system? |
#6
| |||
| |||
|
|
On Aug 12, 3:46 am, Ian Oxley <ijox... (AT) googlemail (DOT) com> wrote: Within the admin section of a website administrators can upload Resources for inclusion throughout the site. Now, these Resources can be either images, videos or documents e.g. PDF's, etc. Which of the following solutions would be best? 1. Creating a single table named Resources into which all resources would be inserted, then having some way of differentiating between the different types of resources e.g. a 'resource_type' column; or 2. Creating separate tables for each type of resource e.g. Images, Videos, Documents and inserting each resource into the appropriate table. From the information you gave, there is no clear answer. |
|
Or are you just using the database as an expensive file system? |
#7
| |||
| |||
|
|
On Aug 12, 3:46 am, Ian Oxley <ijox... (AT) googlemail (DOT) com> wrote: Within the admin section of a website administrators can upload Resources for inclusion throughout the site. Now, these Resources can be either images, videos or documents e.g. PDF's, etc. Which of the following solutions would be best? 1. Creating a single table named Resources into which all resources would be inserted, then having some way of differentiating between the different types of resources e.g. a 'resource_type' column; or 2. Creating separate tables for each type of resource e.g. Images, Videos, Documents and inserting each resource into the appropriate table. From the information you gave, there is no clear answer. |
|
Or are you just using the database as an expensive file system? |
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |