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-Dedicated Group: General Forum Members Last Login: Today @ 10:47 AM Points: 35,640, Visits: 29,888
 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." "Change is inevitable. Change for the better is not." -- 04 August 2013(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013Helpful Links:How to post code problemsHow to post performance problems
Post #1384987
 Posted Thursday, November 15, 2012 2:16 AM
 SSC Rookie Group: General Forum Members Last Login: Monday, March 10, 2014 4:02 AM Points: 26, Visits: 410
 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-Dedicated Group: General Forum Members Last Login: Today @ 10:47 AM Points: 35,640, Visits: 29,888
 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." "Change is inevitable. Change for the better is not." -- 04 August 2013(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013Helpful 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: Thursday, March 13, 2014 2:29 AM Points: 520, Visits: 1,989
Post #1385284
 Posted Thursday, November 15, 2012 2:06 PM
 SSC-Insane Group: General Forum Members Last Login: Today @ 9:01 AM Points: 20,258, Visits: 13,818
 Another fine piece Jeff. Jason AKA CirqueDeSQLeilI have given a name to my pain...MCM SQL ServerSQL RNNRPosting Performance Based Questions - Gail ShawPosting Data Etiquette - Jeff ModenHidden RBAR - Jeff ModenVLFs and the Tran Log - Kimberly Tripp
Post #1385362
 Posted Thursday, November 15, 2012 2:44 PM
 SSC Veteran Group: General Forum Members Last Login: Wednesday, March 12, 2014 12:04 PM Points: 265, Visits: 2,520
 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: Tuesday, March 11, 2014 4:26 PM Points: 331, Visits: 355
 Learned a lot.
Post #1385383
 Posted Thursday, November 15, 2012 7:28 PM
 Hall of Fame Group: General Forum Members Last Login: 2 days ago @ 3:45 AM Points: 3,539, Visits: 4,972
 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!
Post #1385418
 Posted Thursday, November 15, 2012 11:54 PM
 SSC-Dedicated Group: General Forum Members Last Login: Today @ 10:47 AM Points: 35,640, Visits: 29,888
 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." "Change is inevitable. Change for the better is not." -- 04 August 2013(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013Helpful Links:How to post code problemsHow to post performance problems
Post #1385486
 Posted Thursday, November 15, 2012 11:57 PM
 SSC-Dedicated Group: General Forum Members Last Login: Today @ 10:47 AM Points: 35,640, Visits: 29,888
 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." "Change is inevitable. Change for the better is not." -- 04 August 2013(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013Helpful Links:How to post code problemsHow to post performance problems
Post #1385488

 Permissions