Previous Thread
Next Thread
Print Thread
Rate Thread
#204755 05/25/2000 8:41 AM
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
Scream,

I notice the increased use of LEFT (outer) joins in 5.08. While I appreciate the simplicity of db structure and coding this provides, I have always worked under the assumption that you take a performance hit when using these types of joins.

Because the query has to execute against both tables and you are not using a pre-built index, you are effectively performing two queries against the entire tables and a sort for every query that you submit (as I understand it - I could be wrong).

While it does not matter for small tables, and so should not matter for the category or boards tables, IMHO I think you should restrict LO joins to a minimum - and avoid them alltogther on the posts table.

I've actually seen a major application brought to it's knees through a single LEFT join.

Hope this is useful.

Dave.


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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1514
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 28
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)