Copied to clipboard

Flag this post as spam?

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


  • Philip 59 posts 73 karma points
    Jul 30, 2012 @ 13:58
    Philip
    0

    Paging on nodes and memory management

    Hi,

    I would like from my business layer of my application to take a node, and retrieve all decendents which are of a certain document type, sort it by e.g. created data and then do paging over the results.

    Is there a way to query Umbraco nodes and do paging and sorting, without having to keep all the nodes in memory? I am worried that if I were to do this on my main node, and the site would grow, that it would be a potential performance bottleneck.

  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Jul 30, 2012 @ 14:19
    Sebastiaan Janssen
    0

    Try to start with the built-in template for paging. It does the paging efficiently, not by actually grabbing everything every time, just the page you need.

    In the backoffice developers section, create a new scripting file, select the Paging template and start tweaking.

     

  • Philip 59 posts 73 karma points
    Jul 31, 2012 @ 08:03
    Philip
    0

    Thanks Sebastiaan, 

    I will have a look at it.

  • 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