tags:

views:

52

answers:

3

I have made an image for this question: Database design

What is the right design? All site's block inserting in only one table or separate tables? Thanks in advance

A: 

I think it's better to use separate tables if you really care about performance in this case. Each table should include atomic information relevant to the specific object, so it would be better to have one table for articles and the second one for categories.

Vafello
@Vafello; Categories and articles are in different tables. Consider a news portal: News, headlines, spot news. What about this issue?Thanks
A: 

I suggest you to read this article: Database normalization

Separate the tables as much as you can, but don't forget to use indexes for the better performance.

ultra
A: 

The answer depends on how you'll be accessing the information.

If you're performing queries across many categories it may make sense to include all the categories in a single table. If your queries will only operating across a single query at a time, you're probably better off breaking the categories out into different tables.

Duncan Beevers