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?
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.
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
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...
is working on a reply...