Raphaël Ouazana created JAMES-1875:
--------------------------------------

             Summary: While doing a getMessageList, JMAP is retrieving every 
mail of the user mailbox before sorting them and limit them
                 Key: JAMES-1875
                 URL: https://issues.apache.org/jira/browse/JAMES-1875
             Project: James Server
          Issue Type: Improvement
          Components: JMAP
            Reporter: Raphaël Ouazana
            Assignee: Antoine Duprat


We should let the backend handle the sort and the limit, for example 
ElasticSearch.

Here is an example query :
[["getMessageList",{"filter":{"inMailboxes":["b02527a0-84b9-11e6-87cc-f1dd7d0a3ede"]},"sort":["date
 
desc"],"collapseThreads":false,"fetchMessages":false,"position":0,"limit":30},"#0"]]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to