<?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: Alfresco Pagination Basic concept in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-pagination-basic-concept/m-p/26978#M11612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SOLR4 is not relevant for your use case as the FileFolderService uses database queries for data retrieval. The list operation retrieves the children of the folder in the order they are provided by the database (not necessarily the same as the creation date) and only performs an in-memory sort. If you do not specify a specific sort order, it will use the order in which the items have been added to the folder (which also is not necessarily the same as the creation date, e.g. when an item was moved into a folder long after it was created).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative&amp;nbsp;to FileFolderService.list() you can also do an FTS query against the database using the Transactional Metadata Query feature added with Alfresco 4.2.&amp;nbsp;A FTS query will apply the sort condition immediately&amp;nbsp;within&amp;nbsp;the SQL select statement. The same also applies if you use SOLR4 for this type of query (e.g. if you request the query to use EVENTUAL consistency or your database has not been prepared for Transactional Metadata Queries).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2017 16:23:14 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2017-07-27T16:23:14Z</dc:date>
    <item>
      <title>Alfresco Pagination Basic concept</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-pagination-basic-concept/m-p/26977#M11611</link>
      <description>Hi All,I am using alfresco-5.0.d and solr4.I have implemented pagination in my application with this code.PagingRequest paging=new PagingRequest(skipResult,maxResult);&amp;nbsp;List&amp;lt;Pair&amp;lt;QName, Boolean&amp;gt;&amp;gt; sortProps = new ArrayList&amp;lt;Pair&amp;lt;QName,&amp;nbsp;Boolean&amp;gt;&amp;gt;(); &amp;nbsp;&amp;nbsp; &amp;nbsp; sortProps.add(new Pair&amp;lt;</description>
      <pubDate>Thu, 27 Jul 2017 11:36:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-pagination-basic-concept/m-p/26977#M11611</guid>
      <dc:creator>sachindac75</dc:creator>
      <dc:date>2017-07-27T11:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Pagination Basic concept</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-pagination-basic-concept/m-p/26978#M11612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SOLR4 is not relevant for your use case as the FileFolderService uses database queries for data retrieval. The list operation retrieves the children of the folder in the order they are provided by the database (not necessarily the same as the creation date) and only performs an in-memory sort. If you do not specify a specific sort order, it will use the order in which the items have been added to the folder (which also is not necessarily the same as the creation date, e.g. when an item was moved into a folder long after it was created).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative&amp;nbsp;to FileFolderService.list() you can also do an FTS query against the database using the Transactional Metadata Query feature added with Alfresco 4.2.&amp;nbsp;A FTS query will apply the sort condition immediately&amp;nbsp;within&amp;nbsp;the SQL select statement. The same also applies if you use SOLR4 for this type of query (e.g. if you request the query to use EVENTUAL consistency or your database has not been prepared for Transactional Metadata Queries).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 16:23:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-pagination-basic-concept/m-p/26978#M11612</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-07-27T16:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Pagination Basic concept</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-pagination-basic-concept/m-p/26979#M11613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to quick reply @&lt;A _jive_internal="true" class="" data-avatarid="2617" data-externalid="" data-online="false" data-presence="null" data-userid="73554" data-username="afaust" href="https://community.alfresco.com/people/afaust" rel="nofollow noopener noreferrer"&gt;Axel Faust&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am completely agree with your answer.But i need to use pagination also .So for that i want alfresco to first get all result, sort the result based on sortProps and then revert the result.but it seems first alfresco getting the result based on my paging request and then performing sort then reverting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 16:34:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-pagination-basic-concept/m-p/26979#M11613</guid>
      <dc:creator>sachindac75</dc:creator>
      <dc:date>2017-07-27T16:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Pagination Basic concept</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-pagination-basic-concept/m-p/26980#M11614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search also has pagination support...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 17:19:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-pagination-basic-concept/m-p/26980#M11614</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-07-27T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Pagination Basic concept</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-pagination-basic-concept/m-p/26981#M11615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but that will reduce the performance it seems.Suppose there is 1k records in a folder so getting page by page is faster then getting all data using fts query and then sort&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 04:52:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-pagination-basic-concept/m-p/26981#M11615</guid>
      <dc:creator>sachindac75</dc:creator>
      <dc:date>2017-07-28T04:52:32Z</dc:date>
    </item>
  </channel>
</rss>

