Skip to content
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

#3370 LimitOffsetPagedList add getTotalCount cache #3373

Merged
merged 3 commits into from
Mar 31, 2024

Conversation

spinachomes
Copy link
Contributor

No description provided.

@@ -85,22 +92,23 @@ public int getTotalPageCount() {

@Override
public int getTotalCount() {
// already fetched?
if (totalRowCount > -1) return totalRowCount;
Copy link
Member

Choose a reason for hiding this comment

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

This needs to move inside the lock ... (or be volatile? but I think just move inside the lock)

@rbygrave rbygrave added this to the 14.1.0 milestone Mar 31, 2024
@rbygrave rbygrave linked an issue Mar 31, 2024 that may be closed by this pull request
@rbygrave rbygrave merged commit e0eda4f into ebean-orm:master Mar 31, 2024
1 check passed
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.

LimitOffsetPagedList add getTotalCount cache
2 participants