Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
Wolf,

No need to be afraid, active discussion is what makes this forum and product so great []/w3timages/icons/smile.gif[/]. Also, I don't want to labor over this point, as Rick has already said that they won't be used extensively. However, I wanted to respond to why I think joins are a bad idea...

As I understand the functionality of the left outer join process, it combines all the items in one table with information from only the rows in the other table which meet the matching condition. This involves 3 actions:

1. A selection againt all the rows of the original table
2. A selection against the matching rows of the 2nd table
3. The creation of a temporary recordset to hold the results

There is a good article on this at http://mysql.net/Manual_chapter/manual_Performance.html

While LOJ's are good for small tables, for very large tables they involve a trememdous amount of overhead. In those cases, I have generally found it more preferable to add a separate table that maps the relationship. This way, when executed it involves a query against a much smaller table that does not have to be generated. It de-normalizes the database further, but generally improves performance.

Now, I should add that I'm not a database expert - I've just had the bad experience of having a large (20GB) database application brought to it's knees by the poor use of LOJ's. IMVHO, they should be reserved for tables which contain a limited number of rows.

However, I would also agree with you that there are lots of other areas in W3T which could benefit from performance tuning - I just wanted to make certain that Rick understood the potential downsides of LOJ's so as not to create further problems.

Dave (Happy to be shown the error of my ways)


Sponsored Links
Entire Thread
Subject Posted By Posted
LEFT OUTER JOINS IN 5.08 The Team 05/25/2000 3:41 PM
Re: LEFT OUTER JOINS IN 5.08 Rick 05/26/2000 6:43 PM
Re: LEFT OUTER JOINS IN 5.08 WolfUK 06/05/2000 6:29 PM
Re: LEFT OUTER JOINS IN 5.08 The Team 06/05/2000 7:03 PM
Re: LEFT OUTER JOINS IN 5.08 WolfUK 06/05/2000 8:00 PM
Re: LEFT OUTER JOINS IN 5.08 The Team 06/05/2000 8:48 PM
Re: LEFT OUTER JOINS IN 5.08 WolfUK 06/05/2000 9:14 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 13523
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 1
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)