Copied to clipboard

Flag this post as spam?

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


  • Istvan Vancsa 1 post 81 karma points
    Jul 09, 2021 @ 11:23
    Istvan Vancsa
    0

    GetChildren without paging and using IQuery parameter

    Hello i would like to do something similar but without paging

    _contentService.GetPagedChildren(currentPageId, pageIndex, pageSize, out var recordsCount, filter);

    Is this possible? All i want to get is all children that respect the filter and be really quick. i saw that GetPagedChildren accept an IQuery<> parameter so i think the filtering is translated into SQL.

    Thanks

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Jul 11, 2021 @ 13:24
    Huw Reddick
    100

    you could just set the page size to something very large, however fetching very large datasets isn't a great idea which is why it uses paging, but if you know there won't be many results then it wouldn't be a problem.

    Alternately you could use an examine searchquery to find what you require which would probably be quicker depending what your filter is on

Please Sign in or register to post replies

Write your reply to:

Draft