<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Paging only works beyond 1000 items when filtering on a property value in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/paging-only-works-beyond-1000-items-when-filtering-on-a-property/m-p/6785#M3297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out this is ACL checks related. The&amp;nbsp;hard limit of 1000 nodes was the clue here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the query with skip 1000 and&amp;nbsp;&lt;STRONG&gt;sp.setMaxPermissionChecks(1001);&lt;/STRONG&gt; I get 1 result. When I run it with&amp;nbsp;&lt;STRONG&gt;sp.setMaxPermissionChecks(Integer.MAX_VALUE); &lt;/STRONG&gt;I get all my results (up until&lt;STRONG&gt; &lt;SPAN style="color: #000000; background-color: #e2fdd2; font-weight: normal;"&gt;2147483647 &lt;/SPAN&gt;&lt;/STRONG&gt;I suppose). I guess this is because paging is done on the resultset after ACL checks are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems with this solution we'll be good for at least until we have well over 2 billion nodes &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2017 07:55:53 GMT</pubDate>
    <dc:creator>marktielemans</dc:creator>
    <dc:date>2017-05-12T07:55:53Z</dc:date>
    <item>
      <title>Paging only works beyond 1000 items when filtering on a property value</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/paging-only-works-beyond-1000-items-when-filtering-on-a-property/m-p/6784#M3296</link>
      <description>I am running Alfresco 201605 community.Considering the following Javascript:function findJs(skipCount, pageSize) {&amp;nbsp;&amp;nbsp;&amp;nbsp; var q = {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query: 'TYPE:"my:customType"',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; language: 'fts-alfresco',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; store: 'workspace://SpacesStore',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; page: {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxItems: pageSize,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ski</description>
      <pubDate>Thu, 11 May 2017 22:11:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/paging-only-works-beyond-1000-items-when-filtering-on-a-property/m-p/6784#M3296</guid>
      <dc:creator>marktielemans</dc:creator>
      <dc:date>2017-05-11T22:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Paging only works beyond 1000 items when filtering on a property value</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/paging-only-works-beyond-1000-items-when-filtering-on-a-property/m-p/6785#M3297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out this is ACL checks related. The&amp;nbsp;hard limit of 1000 nodes was the clue here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the query with skip 1000 and&amp;nbsp;&lt;STRONG&gt;sp.setMaxPermissionChecks(1001);&lt;/STRONG&gt; I get 1 result. When I run it with&amp;nbsp;&lt;STRONG&gt;sp.setMaxPermissionChecks(Integer.MAX_VALUE); &lt;/STRONG&gt;I get all my results (up until&lt;STRONG&gt; &lt;SPAN style="color: #000000; background-color: #e2fdd2; font-weight: normal;"&gt;2147483647 &lt;/SPAN&gt;&lt;/STRONG&gt;I suppose). I guess this is because paging is done on the resultset after ACL checks are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems with this solution we'll be good for at least until we have well over 2 billion nodes &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 07:55:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/paging-only-works-beyond-1000-items-when-filtering-on-a-property/m-p/6785#M3297</guid>
      <dc:creator>marktielemans</dc:creator>
      <dc:date>2017-05-12T07:55:53Z</dc:date>
    </item>
  </channel>
</rss>

