Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ibrahim Nada 2 posts 81 karma points
    Sep 04, 2018 @ 14:33
    Ibrahim Nada
    0

    What is Better in querying Umbraco Data using Api "Examine Vs TypedContentAtXPath" ?

    Hello Everyone, What is better (in sake of every aspect that can be!) Between Examine Search and TypedContentAtXPath when needing to Querying Document Types by Alias or nodes or anything.

  • Marc Goodson 1451 posts 9716 karma points MVP 5x c-trib
    Sep 04, 2018 @ 15:20
    Marc Goodson
    101

    Hi Ibrahim

    'It depends' a little on what you are querying and the size of your site.

    There is a really good article on Skrift by @attackmonkey that examines how long each approach takes to bring back content in certain circumstances:

    https://skrift.io/articles/archive/testing-the-performance-of-querying-umbraco/

    The conclusion is broadly that on smaller sites, XPath is the most efficient, if I need to find a 'NewsSection' landing page, I'll likely use XPath, as I know where it's defined in the content tree structure, nothing will be faster!... but If I'm implementing filtering by different criteria and paging of results eg searching a News Section, then I'd favour Examine...

    regards

    Marc

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies