Type in google:
Database Normalization

And you'll find your awnsers.
The way you are want to do it is VERY bad.



On 6 sep, 11:43, luigi7up <[EMAIL PROTECTED]> wrote:
> hola everyone,
>
> while developing application something crossed my mind. What about
> organizing all comments throughout  application in one database table.
>
> What I mean is this:
>
>  If application has some kind of Blog, News, picture gallery you woul
> create blog_comments table, news_comments table etc.
> What about table creating one table that would hold all comments ?!?
> Table comments would have following fields (id, model_name, item_id,
> author, text)
>
> This table would get pretty huge very soon but there is some logic in
> this approach :)
>
> What do you think?
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to