"I like my Databases only when it's totally normalized"

Hmm. I like my database when it accurately reflects the business model
it represents, and when it functionally makes sense. Relational
databases are supposed to make your life easier, not harder.

Fully normalized database are great, but not always optimal! Besides
that, adding "Invoice=[HasOne]=> Customer " does not necessarily de-
normalize your database; It depends on your business model.
Furthermore, by not adding "Invoice=[HasOne]=> Customer ":
1- you are significantly increasing the complexity of your code
2- you are significantly increasing the load on the database
3- and if you allow tickets to be modified(moved to another invoice or
customer) then you will have several anomalies to overcome

think about it...


On Apr 1, 3:47 pm, "MYRZ" <[EMAIL PROTECTED]> wrote:
> Thanks all,
>
> But i won't be adding a relation between Customer and Invoices. I like
> my Databases only when it's totally normalized  (http://
> en.wikipedia.org/wiki/Database_normalization). No duplicate
> information (so also DRY), and no anomalies.
>
> So i think i'll go for the custom query.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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