Menu

multiple joins

2004-01-13
2004-01-14
  • Eric J Kaplan

    Eric J Kaplan - 2004-01-13

    If I know I'm going to have a bunch of joins, is there any harm in me writing one addTable(...) for each (some are outer joins, some are inner, against different tables) vs. creating Join objects on the various tables. It's a matter of letting crossdb do some of the heavy lifting so my code doesn't have to be too smart. Or is this going to result somehow in a very inefficient query.

     
    • Travis Reeder

      Travis Reeder - 2004-01-14

      addTable is totally fine and it's there to make it easier than doing the Join's like you are saying.

       

Log in to post a comment.

MongoDB Logo MongoDB