Skip to content

Optimize JDBC session cleanup SQL statement #872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2017

Conversation

vpavic
Copy link
Contributor

@vpavic vpavic commented Sep 11, 2017

This PR improves session cleanup handling in JdbcOperationsSessionRepository#cleanUpExpiredSessions by optimizing the used SQL statement. This is done by calculating the session expiry time when persisting the session, which in turn allows the cleanup SQL statement to be more index-friendly.

This resolves #847.

@vpavic vpavic added Data Store status: duplicate A duplicate of another issue type: enhancement A general enhancement in: jdbc labels Sep 11, 2017
@vpavic vpavic added this to the 2.0.0.M4 milestone Sep 11, 2017
This commit improves session cleanup handling in  `JdbcOperationsSessionRepository#cleanUpExpiredSessions` by optimizing the used SQL statement. This is done by calculating the session expiry time when persisting the session, which in turn allows the cleanup SQL statement to be more index-friendly.

Closes spring-projectsgh-847
@rwinch rwinch self-assigned this Sep 12, 2017
@rwinch rwinch merged commit 188e5ba into spring-projects:master Sep 12, 2017
@rwinch
Copy link
Member

rwinch commented Sep 12, 2017

Thanks for the PR! This is now merged into master

@vpavic vpavic deleted the gh-847 branch September 12, 2017 20:42
@cemo
Copy link

cemo commented Sep 12, 2017

It seems good for me as well. Thank you guys. <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: jdbc status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve cleanUpExpiredSessions query
3 participants