title: Sitecore get all parent (ancestor) with little processing (performance)
body: <p>I'm trying to come up with solution on getting all the ancestors for the context item. One option is to store _path in index and other option is to do similar to one below:
  <a href="http://www.glass.lu/Blog/GettingAncestors" rel="nofollow">http://www.glass.lu/Blog/GettingAncestors</a></p>
  
  <p>I'm having no luck with getting the solution work for above (glass mapper) solution.</p>
  
  <p>I got the index solution working but would like to avoid using index just to get the _path (collection of ancestors) as we don't have any other requirements to use index e.g. search etc.</p>
  
  <p>Appreciate if someone could share the snippet for working solution or even better if Glassmapper has already included the above blog solution.</p>