james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Ouazana (JIRA) <server-...@james.apache.org>
Subject [jira] [Created] (JAMES-1875) While doing a getMessageList, JMAP is retrieving every mail of the user mailbox before sorting them and limit them
Date Fri, 25 Nov 2016 14:17:58 GMT
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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message