Copied to clipboard

Flag this post as spam?

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


  • langl3y 1 post 20 karma points
    Jan 19, 2009 @ 17:08
    langl3y
    0

    Umbraco Performance

    Hi everyone. I am new to umbraco so forgive me if this question has been asked before.
    Does umbraco support some type of query language? Suppose I have a node that has thousands of ancestors. Is there any way to filter results on the server side an not use xslt? For example, how would you display and page calendar events made only in 2008?

    Thanks for your help.
    -Erik

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jan 19, 2009 @ 19:54
    Morten Bock
    0

    First of all, XSLT is serverside, so I don't think you will win anything performance wise by doing the filtering in a usercontrol, as they both work off the in-memory XML cache.

    But you do have a couple of options.

    The umbraco.presentation.nodefactory is an API to work with the cached content, but it still uses xpath to select nodes.

    Aaron created something like LINQ to Umbraco: http://www.aaron-powell.com/blog/december-2008/umbraco-interaction-layer---rc1.aspx which is indeed a query language, nut I don't know if it is faster than XSLT. Would be interresting to see a test on that though.

    I hope this helps a bit.

    EDIT: It seems that Aarons code only queries document types, and not content...

Please Sign in or register to post replies

Write your reply to:

Draft