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 21 posts 167 karma points c-trib
    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 2155 posts 14406 karma points MVP 9x 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

Please Sign in or register to post replies

Write your reply to:

Draft