Recent PostsRecent Posts Popular TopicsPopular Topics
 Home Search Members Calendar Who's On

 Hierarchies on Steroids #2: A Replacement for Nested Sets Calculations Rate Topic Display Mode Topic Options
Author
 Message
 Posted Thursday, November 15, 2012 12:03 AM
 SSC-Forever Group: General Forum Members Last Login: Today @ 5:09 PM Points: 42,074, Visits: 39,457
 Comments posted to this topic are about the item Hierarchies on Steroids #2: A Replacement for Nested Sets Calculations --Jeff Moden"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column." Helpful Links:How to post code problemsHow to post performance problems
Post #1384987
 Posted Thursday, November 15, 2012 2:16 AM
 Valued Member Group: General Forum Members Last Login: Thursday, December 1, 2016 12:14 AM Points: 65, Visits: 717
 Another excellent article, John ! This is really usefull.Keep e'm coming Theo (NL)
Post #1385014
 Posted Thursday, November 15, 2012 7:21 AM
 SSC-Forever Group: General Forum Members Last Login: Today @ 5:09 PM Points: 42,074, Visits: 39,457
 Theo Ekelmans (11/15/2012)Another excellent article, John ! This is really usefull.Keep e'm coming Theo (NL)Thanks, Theo. (my name isn't "John", though ). --Jeff Moden"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column." Helpful Links:How to post code problemsHow to post performance problems
Post #1385149
 Posted Thursday, November 15, 2012 11:21 AM
 Mr or Mrs. 500 Group: General Forum Members Last Login: Wednesday, November 16, 2016 11:51 PM Points: 571, Visits: 2,502
Post #1385284
 Posted Thursday, November 15, 2012 2:06 PM
 SSC-Insane Group: General Forum Members Last Login: Monday, November 21, 2016 11:03 AM Points: 20,009, Visits: 18,255
 Another fine piece Jeff. Jason AKA CirqueDeSQLeilI have given a name to my pain...MCM SQL Server, MVPSQL RNNRPosting Performance Based Questions - Gail Shaw
Post #1385362
 Posted Thursday, November 15, 2012 2:44 PM
 SSC Veteran Group: General Forum Members Last Login: Wednesday, November 30, 2016 4:57 PM Points: 269, Visits: 2,842
 Wow. Both articles are awesome. Not only is your code well documented (as usual), but the charts were also extremely useful in helping to explain the text. Well done and thanks for taking the time to really explain the methods.
Post #1385371
 Posted Thursday, November 15, 2012 3:36 PM
 Old Hand Group: General Forum Members Last Login: Monday, August 4, 2014 1:50 PM Points: 340, Visits: 386
 Learned a lot.
Post #1385383
 Posted Thursday, November 15, 2012 7:28 PM
 Hall of Fame Group: General Forum Members Last Login: Wednesday, February 24, 2016 6:28 AM Points: 3,977, Visits: 6,431
 Jeff - Working through it now but its pretty deep and I expect it will take me awhile.Great explanations though!I'm going to try to see if I can adapt the approach to another problem I encountered recently that is "not quite" a hiearchy.Let me know if you decide to change your name to John. I have several article attributions to you I'll need to change. My mantra: No loops! No CURSORs! No RBAR! Hoo-uh!My thought question: Have you ever been told that your query runs too fast?My advice:INDEXing a poor-performing query is like putting sugar on cat food. Yeah, it probably tastes better but are you sure you want to eat it?The path of least resistance can be a slippery slope. Take care that fixing your fixes of fixes doesn't snowball and end up costing you more than fixing the root cause would have in the first place.Need to UNPIVOT? Why not CROSS APPLY VALUES instead?Since random numbers are too important to be left to chance, let's generate some!Learn to understand recursive CTEs by example.Splitting strings based on patterns can be fast!My temporal SQL musings: Calendar Tables, an Easter SQL, Time Slots and Self-maintaining, Contiguous Effective Dates in Temporal Tables
Post #1385418
 Posted Thursday, November 15, 2012 11:54 PM
 SSC-Forever Group: General Forum Members Last Login: Today @ 5:09 PM Points: 42,074, Visits: 39,457
 Michael Meierruth (11/15/2012)They both start with J. He was close.4 Letters, too! --Jeff Moden"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column." Helpful Links:How to post code problemsHow to post performance problems
Post #1385486
 Posted Thursday, November 15, 2012 11:57 PM
 SSC-Forever Group: General Forum Members Last Login: Today @ 5:09 PM Points: 42,074, Visits: 39,457
 dwain.c (11/15/2012)Jeff - Working through it now but its pretty deep and I expect it will take me awhile.Great explanations though!I'm going to try to see if I can adapt the approach to another problem I encountered recently that is "not quite" a hiearchy.Let me know if you decide to change your name to John. I have several article attributions to you I'll need to change.Thanks, Dwain. I'd be interested in your "not quite a hierarchy" problem. Sounds interesting.Heh... nah. Not going to change my name. Too much paper work for us all. --Jeff Moden"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column." Helpful Links:How to post code problemsHow to post performance problems
Post #1385488

 Permissions