Skip to content

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

Closed
nstdio wants to merge 2 commits intoapache:masterfrom
nstdio:JAMES-2498
Closed

JAMES-2498 JDBCMailRepository should not materialize entities for counting them.#132
nstdio wants to merge 2 commits intoapache:masterfrom
nstdio:JAMES-2498

Conversation

@nstdio
Copy link
Copy Markdown
Contributor

@nstdio nstdio commented Jul 24, 2018

Executing SQL query for size.


@Override
public long size() throws MessagingException {
Connection conn = null;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK all jdbc objects can by handled with a try-with-resource

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! I was trying to follow common pattern used in the class.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In these cases, we often do a first commit to migrate code to the right code-style, then a second one with the change we want.

@chibenwa
Copy link
Copy Markdown
Contributor

Hi,

This pull request has just been merged.

One very last thing: I don't have write access to this repository, hence I can not close this issue. Wouldn't you mind doing it for me? It would avoid me annoying the Apache INFRA team with such simple concerns.

Thanks again,

Cheers,

Benoit

@nstdio nstdio closed this Jul 30, 2018
@nstdio nstdio deleted the JAMES-2498 branch November 5, 2018 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants