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

remove LogicalCollection::numberDocuments() #18401

Merged
merged 15 commits into from
Mar 24, 2023

Conversation

jsteemann
Copy link
Contributor

Scope & Purpose

remove LogicalCollection::numberDocuments()

  • 💩 Bugfix
  • 🍕 New feature
  • 🔥 Performance improvement
  • 🔨 Refactoring/simplification

Checklist

  • Tests
    • Regression tests
    • C++ Unit tests
    • integration tests
    • resilience tests
  • 📖 CHANGELOG entry made
  • 📚 documentation written (release notes, API changes, ...)
  • Backports
    • Backport for 3.10: -
    • Backport for 3.9: -
    • Backport for 3.8: -

Related Information

  • Docs PR:
  • Enterprise PR:
  • GitHub issue / Jira ticket:
  • Design document:

@jsteemann jsteemann added this to the devel milestone Mar 22, 2023
@jsteemann jsteemann requested a review from a team as a code owner March 22, 2023 10:39
@jsteemann jsteemann requested a review from a team March 22, 2023 10:39
@cla-bot cla-bot bot added the cla-signed label Mar 22, 2023
if (documents == transaction::CountCache::NotPopulated) {
// cache was not populated before or cache value has expired
documents = getPhysical()->numberDocuments(trx);
_countCache.store(documents);
Copy link
Contributor

Choose a reason for hiding this comment

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

count cache probably never used now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is used in another place, in coordinator-only code.

Copy link
Contributor

Choose a reason for hiding this comment

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

countCoordinatorHelper, I see

@jsteemann jsteemann merged commit 1a036c5 into devel Mar 24, 2023
@jsteemann jsteemann deleted the refactor/remove-logical-collection-number-documents branch March 24, 2023 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants