Shiny Donkey!
Shiny Donkey! Shiny Donkey! Shiny Donkey!
                  Fake Banner Ads!  Mini-Sites!  
    New Shiny Donkey Posts  more >>
* BREAKING NEWS *  9 out of 10 commandments recommend a shot of Drano instead of shinydonkey.com

SQL Alex, Vindicated
[reply]   

03/02/06 09:01 AM EST
posted by JER email web

Long ago, Alex made a comment that Foreign Keys are great in development but should not be copied to the production server because they reduce performance.  SQL Server Central explores the issue and comes to the same conclusion.  Though it seems almost academic on most sites, it could definitely improve performance of your nascarnet.coms...

 


[reply]   

03/03/06 12:07 PM EST
posted by alex email

Jer, Woot!  Thanks for pointing out this article.  Since I now work on another site that gets about 1,000,000-10,000,000 page views a day, depending on the time of year and current events in the DC area, I am glad to hear my inability to accept the fact that somehow my database should make up where my business and data tier come up short, is finally starting to pay off.

Then again, the next thing we hear is that using LEFT JOIN for every join is more efficient than just a plain old INNER JOIN.

Alex

 


[reply]   

03/09/06 01:12 PM EST
posted by Doug1 web

Alex, doesn't that site run on Access though? :-o

I've thought in terms of inner joins for a long time when I know the data should follow those constraints, but after it didn't a couple times, I started making it a more common practice to use Left Joins when the desired result is mostly interchangable. Why would this be more efficient though or are you just being facetious?

 


[reply]   

03/09/06 01:28 PM EST
posted by JER email web

Alex is making fun of Bull, who exclusively uses LEFT JOINs, arguing that he would rather get some data back than no data.  That is often true, but there are clearly times when a developer would prefer a null resultset to a resultset with a few unexpectedly null columns.

This whole argument has no bearing on shinydonkey.com, though, as I outsource all SQL scripting to villagers in Lesotho, where they only use RIGHT JOINS.

 

Name

 registered? log in!

E-mail (optional)

Website (optional)

  

To ensure security, this site requires unregistered users to enter a verification code:
 
Your code is:  
Enter Code:   

Note: Only registered ShinyDonkey.com users can post images. Only administrators can delete images.

  



"And remember, a shiny new donkey for whoever brings me the head of Colonel Montoya..."
e-mail webmaster