You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "ASF GitHub Bot (JIRA)" <se...@james.apache.org> on 2018/07/24 15:08:00 UTC

[jira] [Commented] (JAMES-2498) JDBCMailRepository should not materialize entities for counting them.

    [ https://issues.apache.org/jira/browse/JAMES-2498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16554353#comment-16554353 ] 

ASF GitHub Bot commented on JAMES-2498:
---------------------------------------

GitHub user nstdio opened a pull request:

    https://github.com/apache/james-project/pull/132

    JAMES-2498 JDBCMailRepository should not materialize entities for counting them.

    Executing SQL query for size.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nstdio/james-project JAMES-2498

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/james-project/pull/132.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #132
    
----
commit 7a7b30abebb090be0c3e2e5c22bc8b2c5fcbb896
Author: Edgar Asatryan <ns...@...>
Date:   2018-07-24T15:06:55Z

    JAMES-2498 JDBCMailRepository should not materialize entities for counting them.
    
    Executing SQL query for size.

----


> JDBCMailRepository should not materialize entities for counting them.
> ---------------------------------------------------------------------
>
>                 Key: JAMES-2498
>                 URL: https://issues.apache.org/jira/browse/JAMES-2498
>             Project: James Server
>          Issue Type: Improvement
>          Components: JDBC, MailStore &amp; MailRepository
>    Affects Versions: master, 3.2.0
>            Reporter: Edgar Asatryan
>            Priority: Major
>              Labels: performance
>
> *JDBCMailRepository* can significantly save time and memory when *JDBCMailRepository#size()* is invoked by executing SQL query.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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