Skip to content

Use stream framework to get max version#1526

Merged
jarifibrahim merged 3 commits intomasterfrom
ibrahim/maxversion
Sep 21, 2020
Merged

Use stream framework to get max version#1526
jarifibrahim merged 3 commits intomasterfrom
ibrahim/maxversion

Conversation

@jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Sep 18, 2020

This change is Reviewable

Copy link
Contributor

@ashish-goswami ashish-goswami left a comment

Choose a reason for hiding this comment

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

To calculate maxVersion of any key, this looks bit costly to me, given we will be reading all the keys(atleast first version). Otherwise :lgtm:

Reviewed 2 of 2 files at r2.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @jarifibrahim and @manishrjain)

@jarifibrahim jarifibrahim merged commit 36af85f into master Sep 21, 2020
@jarifibrahim jarifibrahim deleted the ibrahim/maxversion branch September 21, 2020 13:10
jarifibrahim pushed a commit that referenced this pull request Sep 21, 2020
This PR adds a new `db.MaxVersion()` API that returns the
maximum version across all keys in the DB.

(cherry picked from commit 36af85f)
jarifibrahim pushed a commit that referenced this pull request Sep 21, 2020
This PR adds a new `db.MaxVersion()` API that returns the
maximum version across all keys in the DB.

(cherry picked from commit 36af85f)
jarifibrahim pushed a commit that referenced this pull request Oct 2, 2020
This PR adds a new `db.MaxVersion()` API that returns the
maximum version across all keys in the DB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants