Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-3067

Allow batching in core queries

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2 RC1
    • Component/s: Core, Core VCS
    • Impact type:
      API added
    • Upgrade notes:
      Hide

      New APIs:

      • CoreSession.query(String query, Filter filter, long limit, long offset, boolean countTotal)
      • DocumentModelList.totalSize()
      • Query.setLimit(long limit)
      • Query.setOffset(long offset)
      • Query.execute(boolean countTotal)
        New internal class:
      • PartialList
      Show
      New APIs: CoreSession.query(String query, Filter filter, long limit, long offset, boolean countTotal) DocumentModelList.totalSize() Query.setLimit(long limit) Query.setOffset(long offset) Query.execute(boolean countTotal) New internal class: PartialList

      Description

      The low-level core queries (CoreSession.query) must be able to do batching:

      • be able to receive limit/offset parameters,
      • be able to count the total number of documents even if a subset is returned.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: