Jump to content

What's the most tables you have joined?


extrovertive

Recommended Posts

Only five or so. [u]Full[/u] normalization doesn't become that usefull untill you have tables that can potentially get huge, creating a huge amount of repeated data. So on a database that isn't likely to become that big, out of pure lazyness  :P, I use it with moderation.
Link to comment
Share on other sites

[quote author=448191 link=topic=107987.msg434026#msg434026 date=1158223441]
Only five or so. [u]Full[/u] normalization doesn't become that usefull untill you have tables that can potentially get huge, creating a huge amount of repeated data. So on a database that isn't likely to become that big, out of pure lazyness  :P, I use it with moderation.
[/quote]

Moderation? Like in a forum system?

I have a cache table containing things like group information, moderators, settings etc. so I can read from a lot of tables with only one query. The cached information is updated each time it's edited by an admin or so.
Link to comment
Share on other sites

If you are joining double figure tables, and repeating the process (i.e. not just a one off query) you [i]definitely[/i] need to look into using VIEW's.

JOIN's can be inefficient compared to VIEW's, in both computing power and maintenance (by developers)

Whenever I find I need to make more than 3 joins, I make views.
Link to comment
Share on other sites

[quote author=Daniel0 link=topic=107987.msg436372#msg436372 date=1158560347]
Moderation? Like in a forum system?
[/quote]

LOL, and English isn't even my native language...  :P

[quote=wikipedia]Moderation is the process of eliminating or lessening extremes. It is used to ensure normality throughout the medium on which it is being conducted. [/quote]
[quote=http://www.thefreedictionary.com]
mod·er·ate Pronunciation (mdr-t)
adj.
1. Being within reasonable limits; not excessive or extreme: a moderate price.[/quote]
Link to comment
Share on other sites

[quote author=Jenk link=topic=107987.msg436439#msg436439 date=1158579591]
If you are joining double figure tables, and repeating the process (i.e. not just a one off query) you [i]definitely[/i] need to look into using VIEW's.

JOIN's can be inefficient compared to VIEW's, in both computing power and maintenance (by developers)

Whenever I find I need to make more than 3 joins, I make views.
[/quote]

agreed. i've had one application where i ended up joining 12+ tables, so i ended up writing up about 4 different views that i could query from, so in the completed app, i never had more than 4 joins... very useful
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.