Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Simon,

I'm happy to yield to your experience in this area - particularly as you have contributed much more to W3T that I probably ever will []/w3timages/icons/smile.gif[/].

However, one final observation. In the example you give of joining the user table to the posts table, the join you have shown is valid. However, the performance hit of doing the join the other way (from posts to users) could be much more significant - as a match has to be made from the users table against every row in the posts table.

Even with only "tens of thousands" of records (the 20GB system had less than 100,000 records in the tables in question), you need to watch those types of joins very carefully.

I guess my parting thought is that joins should be used where they make sense and do not impact performance - but that they should not be used just because it makes the programming easier - without thinking about what we are actually doing on the underlying database.

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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)